Input

Form

A customizable input field component with support for different types and states.

Installation

bash
1npx @dinachi/cli@latest add input

Run 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

PropTypeDefaultDescription
type
string'text'The type of input field
placeholder
stringPlaceholder text for the input
disabled
booleanfalseWhether the input is disabled