Documentation
Getting Started
Foundations
Form
Layout
Display
Navigation
Overlay
Feedback
Input
Form
A customizable input field component with support for different types and states.
Installation
bash
1npx @dinachi/cli@latest add inputRun the CLI command above to automatically install the component and its dependencies.
Examples
Default Input
A basic input field with placeholder text
Input Types
Different input types for various data formats
Input with Label
Input field with associated label and helper text
This is your public display name.
Disabled Input
Input fields in disabled and read-only states
Input with Validation
Input with real-time validation and error feedback
API Reference
| Prop | Type | Default | Description |
|---|---|---|---|
type | string | 'text' | The type of input field |
placeholder | string | — | Placeholder text for the input |
disabled | boolean | false | Whether the input is disabled |