- Home
- Primitives
- Input
Input
Text input and textarea with validation states and Field integration.
Preview
This preview uses documentation-only styling. Ship with one of the included recipe outputs (CSS, Tailwind, or UnoCSS) for production styles.
Text input and textarea with validation states and Field integration.
Usage
Compose Root, Textarea.
import * as Input from "@solidiom/input"
;<Input.Root>Input content</Input.Root>Installation
Install the package with pnpm add @solidiom/input. The package requires compatible solid-js and @solidjs/web peer dependencies.
Parts
Input exposes 2 parts:
- Root —
data-part="root". - Textarea —
data-part="textarea".
Styling
Input carries data-scope="input" and data-part attributes on each part for CSS/recipe targeting. State attributes like data-state, data-disabled, and data-highlighted are exposed where applicable.
Keyboard & behavior
This primitive has no keyboard interaction. It renders content that does not independently receive focus or respond to key events.
SSR and hydration
Input renders as semantic HTML during server rendering. Interactive behavior (keyboard handlers, state management) activates on hydration without layout shift.