feat(ui): add skeleton component to shadcn-io exports

Export new Skeleton component from shadcn-io directory and add comment about potential future organization
This commit is contained in:
icarus 2025-10-20 03:35:21 +08:00
parent b50d8b2a23
commit 062cbcc259
2 changed files with 9 additions and 0 deletions

View File

@ -96,5 +96,7 @@ export * from './ui/button'
export * from './ui/command'
export * from './ui/dialog'
export * from './ui/popover'
// May group them in shadcn-io/index.ts ?
export * from './ui/shadcn-io/dropzone'
export * from './ui/shadcn-io/skeleton'
export * from './ui/shadcn-io/tabs'

View File

@ -0,0 +1,7 @@
import { cn } from '@cherrystudio/ui/utils'
function Skeleton({ className, ...props }: React.ComponentProps<'div'>) {
return <div data-slot="skeleton" className={cn('bg-accent animate-pulse rounded-md', className)} {...props} />
}
export { Skeleton }