Usage
Use theUSkeleton component to show loading placeholders while content is being fetched.
Props
as
- Type:
any - Default:
'div'
class
- Type:
any
ui
- Type:
{ base?: any }
base- The base styles applied to the skeleton
Slots
default
The skeleton automatically has a pulsing animation. You can place content inside that will be hidden while loading.Accessibility
The skeleton includes proper ARIA attributes:aria-busy="true"- Indicates loading statearia-label="loading"- Screen reader labelaria-live="polite"- Announces changes politelyrole="alert"- Identifies as an alert region