Zephora UI

Form

Input

Single-line text input with three sizes, invalid state and optional start/end adornments. The forwarded ref points at the inner <input>.

Import

import { Input } from "@zephora/react";

Examples

Sizes

Adornments

Render icons or text before/after the input with `startAdornment` / `endAdornment`.

$USD

Invalid and disabled

`invalid` sets aria-invalid and error styling.

API

Input props

PropTypeDefaultDescription
size"sm" | "md" | "lg""md"Control height / typography scale.
invalidbooleanfalseMarks the field invalid: sets aria-invalid and error styling.
startAdornmentReactNodeElement rendered before the input (icon, prefix…).
endAdornmentReactNodeElement rendered after the input (icon, suffix…).
fullWidthbooleanfalseStretches the field to the container width.
unstyledbooleanfalseHeadless mode — drops Zephora classes so your own CSS can style it.
…restOmit<InputHTMLAttributes<HTMLInputElement>, "size">All native input props (value, onChange, type, placeholder…) are forwarded.