Skip to main content

Input

Input component from Scaffald UI component library.

Import​

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

Basic Usage​

Live Preview
<ThemeProvider initialTheme="light">
<Stack gap={16} style={{maxWidth: 400}}>
  <Input label="Email" placeholder="you@example.com" />
</Stack>
</ThemeProvider>

Props​

See the TypeScript definitions for the complete props API.

Common Props​

All Input components accept standard React Native View props.

Variants​

See component props for available variants.

Examples​

Live Preview
<ThemeProvider initialTheme="light">
<Stack gap={16} style={{maxWidth: 400}}>
  <Input label="Name" placeholder="John Doe" />
  <Input label="Email" placeholder="you@example.com" required />
  <Input label="Password" placeholder="Enter password" secureTextEntry />
  <Input label="Website" externalAddon="https://" placeholder="example.com" />
  <Input label="Error State" error errorMessage="This field is required" />
  <Input label="Disabled" disabled value="Cannot edit" />
</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.