mirror of
https://github.com/yusufipk/OpenFrame.git
synced 2026-09-11 17:46:06 +00:00
- Implement loading states for dashboard, project, and video views - Introduce skeleton UIs for settings pages - Add skeletons for Navbar and charts - Enhance `Skeleton` component with a text variant - Improve perceived performance during data fetching - Update `.gitignore` with `Optimization.md`
14 lines
275 B
TypeScript
14 lines
275 B
TypeScript
import { cn } from "@/lib/utils"
|
|
|
|
function Skeleton({ className, ...props }: React.ComponentProps<"div">) {
|
|
return (
|
|
<div
|
|
data-slot="skeleton"
|
|
className={cn("bg-muted animate-pulse rounded-md", className)}
|
|
{...props}
|
|
/>
|
|
)
|
|
}
|
|
|
|
export { Skeleton }
|