Skip to main content

SettingsFormField

SettingsFormField component from Scaffald UI component library.

Import​

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

Basic Usage​

Live Preview
<ThemeProvider initialTheme="light">
<SettingsFormField label="Display Name" description="Your public display name">
  <Input defaultValue="Jane Smith" />
</SettingsFormField>
</ThemeProvider>

Props​

See the TypeScript definitions for the complete props API.

Common Props​

All SettingsFormField components accept standard React Native View props.

Variants​

See component props for available variants.

Examples​

With Helper Text​

Live Preview
<ThemeProvider initialTheme="light">
<Stack gap={16}>
  <SettingsFormField label="Email" description="Your primary email address">
    <Input defaultValue="jane@example.com" />
  </SettingsFormField>
  <SettingsFormField label="Bio" description="A short description about yourself">
    <Input defaultValue="Software engineer" />
  </SettingsFormField>
</Stack>
</ThemeProvider>

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.