3.0.0 • Published 6 months ago
@leafygreen-ui/skeleton-loader v3.0.0
Skeleton Loader
View on MongoDB.design
Installation
Yarn
yarn add @leafygreen-ui/skeleton-loaderNPM
npm install @leafygreen-ui/skeleton-loaderExample
<ParagraphSkeleton />
<ParagraphSkeleton withHeader />
<FormSkeleton />
<CardSkeleton />
<TableSkeleton columnLabels={['Column 1', 'Column 2']} />Properties
Skeleton
| Name | Type | Default | Description |
|---|---|---|---|
size | string | default | Determines the height of the skeleton |
HTML div props | Additional HTML div properties |
Paragraph Skeleton
| Name | Type | Default | Description |
|---|---|---|---|
withHeader | boolean | false | Indicates whether the header skeleton should be rendered |
HTML div props | Additional HTML div properties |
Table Skeleton
| Name | Type | Default | Description |
|---|---|---|---|
columnLabels | Array<React.ReactNode> | Column labels. Empty strings will be treated as unknown and render a simple skeleton. | |
numRows | number | 5 | Number of rows |
numCols | number | 4 | Number of columns |
baseFontSize | 13 \| 16 | 13 | Base font size |
HTML div props | Additional HTML div properties |
Form Skeleton
<FormSkeleton /> only extends HTML div props.
Card Skeleton
<CardSkeleton /> only extends HTML div props.
Icon Skeleton
| Name | Type | Default | Description |
|---|---|---|---|
size | 'small'| 'default'| 'large'| 'xlarge'| number | default | Determines the height of the skeleton |
HTML div props | Additional HTML div properties |
2.0.3
10 months ago
2.0.2
11 months ago
2.0.5
9 months ago
2.0.4
10 months ago
2.0.11
8 months ago
2.0.7
9 months ago
2.0.12
7 months ago
2.0.6
9 months ago
2.0.9
8 months ago
2.0.10
8 months ago
2.0.8
8 months ago
2.0.1
11 months ago
2.0.0
11 months ago
3.0.0
6 months ago
1.3.1
1 year ago
1.3.0
1 year ago
1.2.1
1 year ago
1.2.0
2 years ago
1.1.3
2 years ago
1.1.1
2 years ago
1.0.2
2 years ago
1.1.0
2 years ago
1.0.6
2 years ago
1.0.5
2 years ago
1.0.4
2 years ago
1.1.2
2 years ago
1.0.3
2 years ago
2.0.0-alpha.0
2 years ago
2.0.0-alpha.1
2 years ago
1.0.1
2 years ago
1.0.0
2 years ago