Components

Skeleton


Installation

NPM packages are currently unstable and may cause issues. Use it at your own risk.

npm install @mijn-ui/react-skeleton

Example Usage

skeleton-example.tsx
import { Skeleton } from "@mijn-ui/react-skeleton"
 
const SkeletonExample = () => {
  return (
    <div className="flex items-center space-x-4">
      <Skeleton className="size-12 rounded-full" />
      <div className="space-y-2">
        <Skeleton className="h-4 w-[250px]" />
        <Skeleton className="h-4 w-[200px]" />
      </div>
    </div>
  )
}
 
export default SkeletonExample

SkeletonCard

skeleton-card.tsx
import { Skeleton } from "@mijn-ui/react-skeleton"
 
const SkeletonCard = () => {
  return (
    <div className="flex flex-col space-y-3">
      <Skeleton className="h-[125px] w-[250px] rounded-xl" />
      <div className="space-y-2">
        <Skeleton className="h-4 w-[250px]" />
        <Skeleton className="h-4 w-[200px]" />
      </div>
    </div>
  )
}
 
export default SkeletonCard

On this page