mirror of
https://litchi.icu/ngc2207/judge.git
synced 2025-05-18 13:56:33 +00:00
feat: add Skeleton component for loading placeholders in the code editor
This commit is contained in:
parent
d2ce0acfe5
commit
227ae89c03
15
code-editor/src/components/ui/skeleton.tsx
Normal file
15
code-editor/src/components/ui/skeleton.tsx
Normal file
@ -0,0 +1,15 @@
|
||||
import { cn } from "@/lib/utils"
|
||||
|
||||
function Skeleton({
|
||||
className,
|
||||
...props
|
||||
}: React.HTMLAttributes<HTMLDivElement>) {
|
||||
return (
|
||||
<div
|
||||
className={cn("animate-pulse rounded-md bg-primary/10", className)}
|
||||
{...props}
|
||||
/>
|
||||
)
|
||||
}
|
||||
|
||||
export { Skeleton }
|
Loading…
Reference in New Issue
Block a user