Elements Input
Back to Elements

Input

0 components

UI elements you can copy into your project.

API reference

Generated from each primitive's $props() declaration.

Input.Root

Text input field with dark mode support and size variants.

Prop Type Default Description
ref bind: HTMLElement | null null
value bind:
type
files bind:
size "sm" | "default" | "lg" "default"
class as className string
data-slot as dataSlot string "input"
...restProps Record<string, unknown> Remaining attributes, spread onto the underlying element.