Skip to main content
Version: Next

Skeleton API

import { Skeleton } from '@editora/ui-react';

Props​

PropTypeDescription
animatedboolean
animation'none' | 'shimmer' | 'pulse' | 'wave'
countnumber
density'default' | 'compact' | 'comfortable'
durationstring
gapstring
headlessboolean
heightstring
radiusstring
tone'default' | 'brand' | 'success' | 'warning' | 'danger'
variant'rect' | 'text' | 'circle' | 'pill' | 'avatar' | 'badge' | 'button'
widthstring

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