mirror of
https://github.com/CherryHQ/cherry-studio.git
synced 2026-01-07 13:59:28 +08:00
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:
parent
b50d8b2a23
commit
062cbcc259
@ -96,5 +96,7 @@ export * from './ui/button'
|
|||||||
export * from './ui/command'
|
export * from './ui/command'
|
||||||
export * from './ui/dialog'
|
export * from './ui/dialog'
|
||||||
export * from './ui/popover'
|
export * from './ui/popover'
|
||||||
|
// May group them in shadcn-io/index.ts ?
|
||||||
export * from './ui/shadcn-io/dropzone'
|
export * from './ui/shadcn-io/dropzone'
|
||||||
|
export * from './ui/shadcn-io/skeleton'
|
||||||
export * from './ui/shadcn-io/tabs'
|
export * from './ui/shadcn-io/tabs'
|
||||||
|
|||||||
@ -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 }
|
||||||
Loading…
Reference in New Issue
Block a user