Messages
Skeleton
The outline of content that is still loading, in any shape, from a line of text to a whole card.
WAI-ARIA tested
Import
main.ts
import { Skeleton } from '@vitral/vue';Shapes
A card loading
API
Read from packages/vue/src/components/Skeleton/types.ts, so it says what the component actually accepts.
Props
| Name | Type | Description |
|---|---|---|
| shape | 'rectangle' | 'circle' | `'rectangle'` (the default) or `'circle'`, which also makes width and height equal. |
| width | string | Any CSS length. Defaults to the full width of the space it is in. |
| height | string | Any CSS length. Defaults to one line. |
| borderRadius | string | — |
| animated | boolean | The sweep across the box. On by default, and off under `prefers-reduced-motion`. |
Plus pt, dt and unstyled from BaseProps, see pass-through and unstyled mode.