Skeleton API
import { Skeleton } from '@editora/ui-react';
Props
| Prop | Type | Description |
|---|---|---|
animated | boolean | |
animation | 'none' | 'shimmer' | 'pulse' | 'wave' | |
count | number | |
density | 'default' | 'compact' | 'comfortable' | |
duration | string | |
gap | string | |
headless | boolean | |
height | string | |
radius | string | |
tone | 'default' | 'brand' | 'success' | 'warning' | 'danger' | |
variant | 'rect' | 'text' | 'circle' | 'pill' | 'avatar' | 'badge' | 'button' | |
width | string |
Also accepts the standard HTML and React props of the element it renders (className, style, id, aria-*, data-*, event handlers).
Element: <ui-skeleton>
Skeleton renders the ui-skeleton custom element from @editora/ui-core, which can also be used without React.
Attributes: animated, animation, count, density, duration, gap, headless, height, radius, tone, variant, width