Create UI 1.5.17
Visible keyboard focus, form fields that announce their help and errors, readable light themes, and four new component pages.
1.5.17 is mostly an accessibility release. Keyboard focus is visible where it was not, form fields announce their help text and errors, and text and borders hold their contrast in light themes. Copied components do not change on their own, so read "Before you upgrade" first.
For developers
Accessibility
- Focus is visible. Tabs, Tab Menu, Stepper, Breadcrumb, Rating, Table, Chain of Thought, Slider, Chip and the items of Dropdown Menu, Select, Combobox, Context Menu and Input Tag now draw a focus ring. In Tailwind 4.1,
outline-nonealso resets the outline style, so many rings never showed. Stepper, Rating and Table now useoutline-stronginstead ofprimary-base. - Field wires itself up.
FieldLabel,FieldDescription,FieldHelperandFieldErrorconnect toInput,TextareaandSelect, in the server HTML too. Repeated parts get their own ids, and descriptions are read in the order they appear. A Select trigger is a button, so its label connects byaria-labelledbyinstead offor. New export:useFieldControl. - Placeholder and helper text use
neutral-500in light andneutral-400in dark, to reach 4.5:1. - Status colors are darker in light mode. Success, warning, verified and away base and strong tokens move to the 700 and 800 steps. Solid success, warning, verified and away badges use 700, the solid success Button uses 700, and a loading Button keeps its resting fill.
- New
on-primarytoken for text on solid primary fills. On the lime, green, orange, yellow and cyan themes, that text and the loading spinner are near-black. Indigo, red and blue keep white. - New
stroke-controltoken gives Input, Textarea, Select and unchecked Checkbox and Radio aneutral-500resting border, for 3:1 against the page. - Icon-only controls get a name. App Store Badge and Social Login Button have a default accessible name in
iconOnlymode. In development, an icon-only Button, Badge or Text Link without a name logs a warning once. - Chip: a clickable chip puts its lead and label in a native
<button>. It announces pressed or not pressed only when you passselected. The close control is namedRemove <label>and has a hit area of at least 24px. A chip withoutonClickis not focusable. - Slider forwards
aria-labelandaria-labelledbyto its thumbs. On a range, the thumbs read "minimum" and "maximum" after your label. - Stepper dots have a larger hit area that never covers the next dot. Tab Menu links rendered with
asChildgetaria-current="page"on the selected item. - Textarea no longer re-renders forever while it is hidden.
Components
- Phone Input, Date Input and Credit Card Input take
valueandonChange, and work with React Hook Form throughController.registerworks for submit only; useControllerwhen you needresetorsetValue. Each has a new<name>-react-hook-formexample. - Credit Card Input reports
onValueChangeonly when the user types. It no longer fires on mount withdefaultValue. - Date Input
defaultValuealso accepts an ISO string orYYYY-MM-DD. ItsonValueChangereports typed changes only, not a default or avalueyou set from the parent. - Input OTP inside
Field size="md"renders thelgslots instead of losing its size classes. - Toast never drops a queued
dangertoast unseen. It shows once a slot frees up, with its own countdown. - Checkbox Group and Switch Group
disablednow disables the controls inside. Passdisabled={false}on a child to keep it interactive. - Pro Sidebar takes
mobileBehavior="drawer", withmobileOpenandonMobileOpenChange. Below 768px it becomes a modal drawer that stays mounted, so menu state survives. The default,static, is unchanged. - Pro Tabs and Tab Menu keep their current look. In development, one without
variantlogs a one-time warning: the default changes fromvertical-buttontohorizontal-linein 2.0, so passvariantto keep your look. Ahorizontal-linewithoutindicatorlogs a second warning, because it will get the bottom line in 2.0. - overlay-10 (cookie consent block) starts with only Essential on, and adds a "Reject all" button.
Docs and AI
- New pages: Country Flag, Credit Card Input, Date Input and Phone Input.
llms-full.txtnow ships next tollms.txt. It holds every public docs page as one text file.- The component notes that AI assistants read are corrected for Chip, Radio Group, Tooltip, Info Tooltip, Toast, Dropdown Menu, Context Menu, and Pro Tabs and Tab Menu.
Before you upgrade
Copied components do not change on their own. These apply when you add a component again.
Markup that tests may rely on
- Chip: the root no longer has
role="button"and no longer takes focus. A clickable chip has an inner<button data-slot="chip-action">, andaria-label,aria-labelledbyandaria-describedbymove to it.ref.focus()on the root does nothing, and selectors like[data-slot=chip][role=button]stop matching. The close control is now a tab stop of its own. - Slider:
aria-labelgoes to the thumbs, not the root. A test that finds the root withgetByLabelTextneeds to look for the thumb. - Field:
FieldLabelalways renders a<label>. Input and Textarea get theiridautomatically and the label'sforpoints at it. A Select trigger is named througharia-labelledbyinstead. All three getaria-describedbyautomatically. Your ownidandaria-describedbyare kept. - Button, Badge, Text Link: an
iconOnlyuse without a name logsconsole.warnin development. Test setups that fail on warnings will flag it. - Pro Tabs and Tab Menu: a missing
variantlogsconsole.warnin development, as described above. - Checkbox Group and Switch Group: a disabled control is not submitted with a native form. If a form relied on a disabled group still sending its values, pass
disabled={false}on the children. - Credit Card Input and Date Input:
onValueChangereports typed changes only. Credit Card Input no longer fires it on mount withdefaultValue, and Date Input does not fire it for a default or avalueset from the parent. Code that read that first call as the initial value needs to readdefaultValueinstead.
Look
- Form controls you add again get a darker resting border, and placeholder and helper text get darker in light mode.
- On the lime, green, orange, yellow and cyan themes, text on solid primary fills turns near-black.
- Status colors are darker in light mode, and solid success buttons and badges darken with them. Danger Button hover moves to
red-700.
For designers
- The Figma kit does not change in this release.
- What you will see on the site and in freshly added code:
- Text on solid primary uses
on-primary: white on indigo, red and blue, near-black on lime, green, orange, yellow and cyan. - Form control borders use
stroke-control:neutral-500in light and dark. - Placeholder text moves one step:
neutral-500in light,neutral-400in dark. - Success, warning, verified and away use the 700 and 800 steps in light mode, and solid badges use 700.
- Keyboard focus rings use
outline-strongon Stepper, Rating and Table.
- Text on solid primary uses
On the site
- The cookie notice appears once more, where consent is required, for visitors who answered it before. The cookie policy now lists our own first-touch and last-touch cookies,
cui_ft(90 days) andcui_lt(30 days). Privacy and cookie policy pages show a new "Last updated" date. - The docs use a full-width frame with a centered 1120px content column.
- Wide prop tables scroll, close buttons, breadcrumbs and the table of contents have larger hit areas, and the 404 page has its own page background.
Also shipped since 1.5
Releases 1.5.10 to 1.5.16 had no changelog page. This is what reached the site and docs.
- Social Login Button shows "GitLab" with the right capitalization, and its icon-only demos name each brand correctly.
- The site runs on Next.js 16.4.6, a security update.
- The site shows a cookie notice on the first visit and asks before loading Google Analytics, Google Ads or Microsoft Clarity where consent is required. A "Cookie settings" link in the footer reopens the choice.
- Hotjar is gone, and Clarity masks account and sign-in pages in its recordings.
- The privacy and cookie policy pages were rewritten.