Skip to content
Playground

Input

A native text input styled for Zenos fields and groups.

A native text input styled for Zenos fields and groups.

TSX
import { Input } from "@zentara-co/zenos-ui";

Inputs use the shared Zenos sm, md, and lg control scale.

Choose a surface that matches the field hierarchy. default is the standard bordered control, filled is the subtle filled surface, and none is borderless for inline editing.

Hover, focus, filled, invalid, and disabled treatments follow the design-system input spec. Invalid controls use a 2px danger-subtle border and accent red subtlest fill in light and dark (the none variant stays borderless). Set aria-invalid directly or compose with Field.Root invalid so assistive technology receives the error relationship.

TSX
import { Field, Input } from "@zentara-co/zenos-ui"; <Field.Root required>  <Field.Label>Email</Field.Label>  <Field.Control render={<Input type="email" autoComplete="email" />} />  <Field.Description>Used for security notifications.</Field.Description></Field.Root>;
PropTypeDefaultDescription
size 'sm' | 'md' | 'lg' md Control size.
variant 'default' | 'filled' | 'none' default Surface treatment (`default` = standard, `filled` = subtle, `none` = borderless).
aria-invalid boolean | 'grammar' | 'spelling' — Native invalid state. Field.Root supplies it when its invalid prop is set.

All applicable native input props, events, ARIA attributes, styles, data attributes, and refs are preserved.

Input preserves native input semantics. Provide a visible label with Field.Label or Label; use an accessible name directly only when the visual context already communicates the purpose. Prefer Field.Root invalid to connect an error message instead of relying on color alone.