Component changelog

TextField changelog

Component-specific release notes collected from the full changelog. This page filters the published entries that mention TextField.

Release

v1.2.0

npm
Minor Changes
  • 1898db0: Add Field: Root, Label, Control, Description and Error parts that link a label, help text and an error to any form control. Ids, aria-describedby and aria-invalid are wired automatically, Error renders only while the field is invalid, and every part carries data-invalid, data-disabled, data-required, data-focused, data-touched and data-dirty. Compose Rad UI's TextField or TextArea with <Field.Control asChild>.

  • 07e6783: Add onValueChange(value, event) to TextField, TextField.Input and TextArea: it's called with the new text after onChange, so you don't need event.target.value. Clearing with TextField.Reset reports ''.

  • 07e6783: Add Toolbar.Input, a text field that's one stop in the toolbar's arrow-key navigation. ArrowLeft and ArrowRight move the caret and leave the field only once the caret is at its start or end, and Home and End stay in the field. Roving focus now keeps a text field's own role and type instead of stamping button semantics on it.

Release

v1.0.0

npm
Minor Changes
  • 56ab619: Release TextField and add theme styles for Fieldset.

    • TextField is now published. Previously it shipped with styles and tests but was missing from the export list, so @radui/ui/TextField did not resolve.
    • Fieldset now renders with Rad UI styling in both themes instead of the browser default, and its invalid and disabled props have a visual effect.
Patch Changes
  • 8ca42a5Expose TextField anatomy through stable data-slot attributes.

Release

v0.5.0

npm
Patch Changes
  • a25ee5aAdd a work-in-progress TextField compound API with slot and reset fragments, updated styling, Storybook stories, and behavioral test coverage.