Skip to main content

Text

Base text component with support for size, weight, and color variants.

Import​

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

Basic Usage​

Live Preview
<ThemeProvider initialTheme="light">
<Stack gap={8}>
  <Text size="lg" weight="bold">Large Bold</Text>
  <Text size="md">Medium Regular</Text>
  <Text size="sm" color="secondary">Small Secondary</Text>
</Stack>
</ThemeProvider>

Props​

See the TypeScript definitions for the complete props API.

Accessibility​

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

Changelog​

See GitHub Releases for version history.