UnreviewedAny data-* attribute is forwarded to the rendered element.
Any aria-* attribute is forwarded to the rendered element.
Optional UnreviewedchildrenExtra content between the field and hint. A Tooltip child anchors to the
field. Use leading and trailing for content inside the field.
Optional UnreviewedlabelExplain what to enter. Accepts text or JSX and also names the field for screen readers.
Optional UnreviewedhintPersistent help or feedback below the field. status colors the message and
adds a status icon.
Optional UnreviewedstatusFeedback for the field and hint. Use critical for an error that must be
fixed before submission. Other statuses provide feedback without adding a
validation error. Required fields and other validation rules still apply.
Optional UnreviewedstatusIcon before the hint. The defaults are warning-diamond for critical,
warning-triangle for warning, circle-check for success, info for info,
and circle-small-solid for brand. Pass a shape to replace it or false to
hide it. Neutral has no default icon.
Optional UnreviewedtoneCustom CSS border color. A non-neutral status takes precedence. The focus
ring uses the global --focus-ring.
Optional UnreviewedpriorityField emphasis. primary has a fill and border, secondary keeps the
border without a fill, and tertiary makes the border transparent until
hover or focus.
Status borders remain visible at rest.
Optional UnreviewedsizeAdjust the field, text, icons, and action buttons together to suit the surrounding interface.
Optional UnreviewedvalueControlled value. Update it with onInput or onValueChange for live
editing. Form reset and restoration preserve controlled text; release
retains the current text.
Optional UnrevieweddefaultInitial value for an uncontrolled field, restored on form reset.
Optional UnreviewedmultilineAllow longer text and grow the field as someone types. Use maxRows to
limit growth or rows to keep a fixed height.
Optional UnreviewedrowsFixed visible row count. Also enables multiline.
Optional UnreviewedmaxMaximum row count for autogrow when rows is unset. Omit for unlimited
growth.
Optional UnreviewedclearableShow a clear button before trailing content when an editable field has a value.
Optional UnreviewedleadingContent at the start of the field, such as an icon or text.
Optional UnreviewedtrailingContent at the end of the field, after the clear button. Anta buttons fit
the field height and keep their padding. Icon-only Buttons are square; text
buttons keep their natural width. Pass buttons directly or in
a fragment for compact spacing. Other wrapping elements keep the text inset.
Override either inset with the --input-trailing-inset CSS property.
Optional UnreviewedtypeChoose the kind of information to enter. Ignored for multiline fields.
search adds a search icon and clear button. Replace the icon with
leading or hide the button with clearable={false}.
Optional UnreviewedautoNative autocomplete token describing the field purpose. Overrides the token
derived from the email, tel, or url type. Set an explicit token for other
purposes, such as username, current-password, or one-time-code.
Optional UnreviewedinputVirtual keyboard hint. Overrides the value derived from type without
changing validation.
Optional UnreviewedautoFocus this field when its containing Dialog opens.
Optional UnreviewednameForm field name for submission, named form lookup, and attribute selectors.
Optional UnreviewedplaceholderPlaceholder shown when empty.
Optional UnreviewedtruncateEllipsize an overflowing single-line value. Read-only inputs already do
this; pass false when an editable field should show the full value.
Optional UnrevieweddisabledDisable the field.
Optional UnreviewedreadMake the field read-only.
Optional UnreviewedbuttonRender the field surface with a native button as its focus target. This is available for Input-styled popup triggers; the value becomes the button text and the placeholder is shown while it is empty.
Optional UnreviewedrequiredMark the field required (drives native validity).
Optional UnrevieweddimKeep leading, trailing, and clear content subtle until someone hovers over or focuses the field.
Optional UnreviewedroundGive the field fully rounded corners. Pass a number in pixels or a CSS length for a custom radius. The clear button stays circular.
Optional UnreviewedspellToggle native spell-checking.
Optional UnreviewedmaxMaximum text length for native types that support it.
Optional UnreviewedminMinimum text length for native types that support it.
Optional UnreviewedpatternValidation pattern for supported single-line types. Checks validity without preventing typing.
Optional UnreviewedminMinimum value for type="number".
Optional UnreviewedmaxMaximum value for type="number".
Optional UnreviewedstepAllowed increment for type="number".
Optional UnreviewedonFires when editing changes the value or the field is cleared. Read
e.target.value.
Optional UnreviewedonFires on native commit, such as blur or Enter, and on clear. Use onInput or
onValueChange for live edits. Read e.target.value.
Optional UnreviewedonReceive the current text, field name, and validation result while editing
and when an edit is committed, including clear. Can run more than once for
the same value. Use event.type to distinguish the events.
Optional UnreviewedonFires before the built-in clear action. Call e.preventDefault()
synchronously to keep the value and cancel onClearInput. Corresponds to the
cancelable, bubbling clearclick event.
Optional UnreviewedonFires after clearing, following onInput and onChange. Does not fire when
clearing is canceled. Corresponds to the bubbling clearinput event.
Optional UnreviewedonFires when the field gains focus.
Optional UnreviewedonFires when the field loses focus.
Optional UnreviewedroleARIA role for the native control, such as combobox for an InputAutocomplete
trigger. The element delegates this and standard aria-* props to its native
shadow control.
Optional UnreviewedclassAdds CSS classes to the root element and preserves its existing classes.
Optional UnreviewedstyleInline CSS styles on the root element.
Optional UnreviewedidHTML id attribute.
Optional UnreviewedtitleHTML title attribute, shown as a browser tooltip on hover.
Optional UnreviewedslotNamed slot in a parent web component, such as slot="header" in a <Dialog>.
Optional UnreviewedtabTab order. Set to -1 to skip the element when tabbing.
Optional UnreviewedkeyReact/Preact reconciliation key when rendered inside a list. Consumed by the JSX runtime (not forwarded as a DOM attribute).
OptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalon
Common props for JSX component wrappers.