API reference: @salmonui/notifications/skeleton
SkeletonPropsinterface
import type { SkeletonProps } from '@salmonui/notifications/skeleton';interface SkeletonProps extends Omit<HTMLAttributes<HTMLSpanElement>, 'children'> {
shape?: SkeletonShape;
lines?: number;
width?: number | string;
height?: number | string;
animation?: SkeletonAnimation;
loading?: boolean;
children?: ReactNode;
ref?: Ref<HTMLSpanElement>;
}
| 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 |