API reference: @salmonui/notifications/skeleton
Skeletoncomponent
import { Skeleton } from '@salmonui/notifications/skeleton';function Skeleton({ shape, lines, width, height, animation, loading, children, className, style, ref, ...rest }: SkeletonProps): ReactNode;
A placeholder shape shown while content loads.
Props: SkeletonProps
| Name | Signature | Description |
|---|---|---|
shapeoptional | shape?: SkeletonShape; |
|
linesoptional | lines?: number; | Text lines ( |
widthoptional | width?: number | string; | Inline size: a number of pixels or any CSS length. |
heightoptional | height?: number | string; | Block size: a number of pixels or any CSS length. |
animationoptional | animation?: SkeletonAnimation; |
|
loadingoptional | loading?: boolean; | Shows the placeholder (default |
childrenoptional | children?: ReactNode; | Content the placeholder stands in for. |
refoptional | ref?: Ref<HTMLSpanElement>; | The root |