Input
Base UIA single-line text input with consistent states.
ReadyResponsive
Usage
Package export"use client"
import {
Field,
FieldDescription,
FieldLabel,
} from "@jnpll/elements-ui/field"
import { Input } from "@jnpll/elements-ui/input"
export function InputDemo() {
return (
<Field>
<FieldLabel htmlFor="input-demo-api-key">API Key</FieldLabel>
<Input id="input-demo-api-key" type="password" placeholder="sk-..." />
<FieldDescription>
Your API key is encrypted and stored securely.
</FieldDescription>
</Field>
)
}
export default InputDemo;
Examples
Disabled state
This field is currently disabled.
API Reference
| Prop | Type / description | Default |
|---|---|---|
disabled | booleanDisables the control. | false |
value / defaultValue | stringControlled or initial input value. | - |
className | stringAdditional classes, merged with the component styles. | - |
Composition & accessibility
Import the composition slots shown in the example. Keep labels and descriptions meaningful; interactive primitives provide keyboard and focus behavior. See the source for the complete typed API.