Skip to main content

Skeleton

Skeleton component from Scaffald UI component library.

Import​

import { Skeleton } from '@scaffald/ui';

Basic Usage​

Live Preview
<ThemeProvider initialTheme="light">
<Stack gap={12} style={{maxWidth: 300}}>
  <Skeleton width={300} height={20} shape="text" />
  <Skeleton width={250} height={20} shape="text" />
  <Skeleton width={200} height={20} shape="text" />
  <Row gap={12} style={{alignItems: 'center'}}>
    <Skeleton width={48} height={48} shape="circle" />
    <Stack gap={8}>
      <Skeleton width={150} height={16} shape="text" />
      <Skeleton width={100} height={14} shape="text" />
    </Stack>
  </Row>
</Stack>
</ThemeProvider>

Props​

See the TypeScript definitions for the complete props API.

Common Props​

All Skeleton components accept standard React Native View props.

Variants​

See component props for available variants.

Examples​

Advanced Usage​

// Example implementation
<Skeleton variant="default">
Example content
</Skeleton>

Accessibility​

  • Keyboard navigation support
  • Screen reader compatible
  • ARIA attributes included
  • Focus management

Design Tokens​

This component uses the following design tokens:

  • Colors: colors.{semantic}.{theme}.{variant}
  • Spacing: spacing.*
  • Typography: typography.*

See Design Tokens for more information.

No related components.

Changelog​

See GitHub Releases for version history.