Files
armarium-website/src/components/ui/data-display/Skeleton/skeleton.variants.ts
T
Daniel Krähenbühl 4f304b8ed4
Deploy to Azure Static Web Apps / build_and_deploy (push) Waiting to run
Deploy to Azure Static Web Apps / close_pull_request (push) Waiting to run
First Release v1.0.0
2026-06-16 21:52:55 +02:00

21 lines
448 B
TypeScript

import { cva, type VariantProps } from 'class-variance-authority';
export const skeletonVariants = cva('bg-secondary', {
variants: {
variant: {
default: 'rounded-md',
circular: 'rounded-full',
text: 'rounded h-4',
},
animated: {
true: 'animate-pulse',
},
},
defaultVariants: {
variant: 'default',
animated: true,
},
});
export type SkeletonVariants = VariantProps<typeof skeletonVariants>;