Reference
[09] Reference
Changelog 1.6
Release notes for @vaneui/ui 1.6.0 to 1.6.3, released 2026-11-16 to 2026-11-20: added props and components, changes and fixes. The changelog page has the latest version.
1.6.3
2026-11-20
Alert is sized as a message strip, and a trailing action sits at its end edge.
Changed
Alert is sized as a message strip, and every part of it follows the size prop. It used the Card scale before: a 20px radius at
md, a leading icon as wide as its library rendered it (24px for most) at every size, and a gap between icon and text of up to 32px. Its text did not follow the size at all and stayed at the size of the page, 16px on most. The values are now:Size Text Radius Icon Gap Padding xs12px 6px 17px 6px 8px sm13px 7px 19px 8px 12px md14px 8px 20px 12px 16px lg16px 10px 23px 16px 20px xl18px 12px 26px 20px 24px At
mdthe radius was 20px and the gap 16px; atlgandxlthe padding was 24px and 32px. On a phone themdpadding stops at 12px, where it went down to 8px. An icon with asize-*class keeps that size, and a font-size, padding, gap or radius class on the Alert still wins. ATextinside an Alert sets its own size, as before.A
Text,Col,StackorRowplaced directly in an Alert takes the free width of the row, so aButtonafter the message sits at the end edge. Before, the button followed the text and stopped in the middle of a wide Alert. A message block withflexNonekeeps its content width.
1.6.2
2026-11-19
A filled Table keeps the lines between its rows, and text on the danger, accent and tertiary fills is readable at small sizes.
Fixed
- A filled Table keeps its row lines. Since 1.6.0 a filled Table, section or row passed its fill to the cells, and the lines between the rows had no color. The cells now draw them in
--color-divider-filled, the color aDividertakes on a fill. The nearest row or section with its own variant decides, a cell with its own appearance keeps its colors, and the Table's own border is as before. AghostTable still has no row lines.
Accessibility
- Text on the danger, accent and tertiary fills reaches 4.5:1. In the light scheme a filled
Badge,ChiporButtonsat at 3.9:1 in danger and tertiary and at 3.8:1 in accent.--color-text-filled-dangerand--color-text-filled-accentare now white (they werered-100androse-100) and--color-text-filled-tertiaryisgray-50(it wasgray-200in the light scheme andgray-50in the dark one). The fills are unchanged, and a project that sets these tokens keeps its own values. In the dark scheme the danger and accent text changes from the same tints to white, which was above 4.5:1 before and after.
Changed
- The package is built with updated development tools, which clears every advisory
npm auditreported for them. None of them ships in the package: its one runtime dependency,tailwind-merge, is unchanged. The built files export the same names and render the same markup as 1.6.1; some list their internal imports in a different order.
1.6.1
2026-11-19
The stylesheet import paths resolve for TypeScript, so a project on TypeScript 6 or later can import @vaneui/ui/css from a .ts or .tsx file.
Fixed
import '@vaneui/ui/css'in a TypeScript file passes the type check on TypeScript 6 and later. The stylesheet import paths (@vaneui/ui/css,/varsand/tokens) had no type declarations. TypeScript 6 reports a side-effect import it cannot resolve as an error (TS2882), where earlier versions skipped it unlessnoUncheckedSideEffectImportswas set. Each path now has atypestarget, an empty module, under thebundler,node16andnodenextresolution modes.@import "@vaneui/ui/css"in a CSS file was not affected and resolves to the same file as before.
1.6.0
2026-11-16
Fixes from a review of 1.5.0, each covered by tests. Overlays keep their content while they close, an Input keeps focus while it is validated, read-only toggles stop reporting changes, a Card finds its parts wherever they render, and a className overrides a responsive value at every width. Some fixes change the rendered markup or where a ref points; those are under Changed.
Added
inertBackgroundon Modal,trueby default. An open Modal makes the rest of the page inert, andfalseturns that off for one modal.data-vane-overlay: a child of<body>with this attribute stays usable while a Modal is open. Use it on a toast region or on a container another library portals to<body>.useOverlayRegistration(), with theOverlayRegistrationReftype: the ref it returns registers an element as an overlay while it is mounted, so an open Modal leaves the element's container under<body>usable.useFieldControlProps, with theFieldControlPropstype: a control VaneUI does not ship (a plain<input>, a masked input, a date picker) takes the Field'sid,aria-describedby,aria-invalid,required,disabledandreadOnlyby spreadinguseFieldControlProps(props). The control's own props win, and outside a Field the props come back unchanged.- Import paths for nine more components:
@vaneui/ui/alert,/field,/progress,/radio,/select,/spinner,/switch,/textareaand/tooltip. They were built like the other component entries but missing from the package'sexports, so the import failed.
Changed
- Input: the root element is a wrapper
<span>with the<input>inside, in every state. Before, the wrapper was rendered only while the input was invalid. A valid Input's wrapper isdisplay: contents, so the layout is the same, andref,classNameandstylestill go to the<input>. A selector that expects the<input>as a direct child of its parent (.form > input) no longer matches. - Checkbox:
refpoints at the<input>and is typedHTMLInputElement, likeRadioandSwitch. It pointed at the wrapper span. Code that used the ref to reach the wrapper readsref.current.parentElement. - Table:
TdandThdefault toinheritAppearancewhere they hadsecondary, so they follow the Table (see Fixed). The default table looks the same, but its cells no longer carrydata-appearanceanddata-variantattributes. - Menu: the item focused last is the menu's one tab stop (
tabindex="0", every other item-1), and hovering an item focuses it. MenuandPopupTriggergive a trigger without anida generated one, which the popup'saria-labelledbypoints at (see Accessibility).Modal: when the element that opened a dialog is gone at close, focus goes to the opener of the overlay that element was in, or stays where it is. It went to the first focusable element of the page.
Fixed
- Closing a
Modal, Popup,Menu, Tooltip or Overlay keeps its content mounted until the exit animation ends. Before, the content was unmounted and mounted again for the exit: child effects ran twice on every close, and text typed into an uncontrolled field was gone during the fade. Inputkeeps focus and the typed text wheninvalidchanges, on its own and through<Field error>. Before, the<input>was replaced each time, so validating while the user typed dropped the focus.- A
Tooltipand aMenuorPopupTriggeron one trigger keep separate anchors. Before, in browsers with CSS anchor positioning, the menu jumped to the corner of the page once the tooltip had closed. Modal: selecting text inside the dialog and releasing the mouse over the backdrop no longer closes it. A press that starts on the backdrop closes it as before.Modal: with two modals open, Escape closes the top one. Before, a lower modal that rendered again could close first.Modal: a dialog opened from aMenuItemreturns focus to the menu's trigger when it closes. Before, focus jumped to the first focusable element of the page and the page scrolled to it.Menu: a menu with more items than fit on screen scrolls, andclampHeightlimits the scrolling area. Before, the last items ran off the screen, or out of the clamped box.- An
Overlayopened while aModalis open stays usable. Before, the Modal made it inert. Checkbox, Switch and Radio: areadOnlycontrol no longer callsonChange, also when the state comes from aRadioGroupor a Field. Before, a controlled form received the flipped value while the control on screen stayed as it was.onClickis still called.- Chip, Badge and Code:
disabledwithhrefrenders a link that cannot be followed (nohref,aria-disabled="true", still focusable), like a disabledButtonlink. Before, the link stayed in the tab order and Enter followed it. CheckboxandRadio: the checked state is visible in theoutlineandghostvariants. Before, the box took the page color and the mark floated on the page, and aghostCheckbox showed no mark at all.Field: an empty string forerrorordescriptionmeans no message. Before,error=""marked the control invalid and rendered an empty paragraph.- Card:
CardHeader,CardBodyandCardFooterare found inside a fragment, behindmemo(), when your own component renders them and when they come from a Server Component. Before, such a Card kept its own padding and the inset doubled. A Card with an explicitpadding,paddingXorpaddingYkeeps its inset next to its parts. Table: an appearance or variant on the Table reaches its rows and cells.<Table success>colors the row rules and the header text, and<Table filled>fills the table. Before, both changed nothing. ATr,Thead,TbodyorTfootwith its own appearance and variant passes them to its cells, and a cell with its own appearance (<Td danger>) keeps it.- A
classNamethat overrides a responsive value holds at every width:<Section className="py-8">keepspy-8on a phone. Before, the class replaced the desktop value only, and the component's own tablet and mobile padding, gap or font size came back below 1024px. This coverspy-*,px-*,p-*,gap-*and font-size classes; a one-sided class such aspt-*still gives way below 1024px. ThemeProviderwiththemeDefaults,extraClassesorthemecopies only the theme nodes it changes.TooltipandMenueach mount one, and rendering 300 of either on the server took about 270ms; it now takes about 20ms.
Accessibility
- The popup of a
PopupTriggeror aMenuis named by its trigger througharia-labelledby. Before, the dialog had no accessible name. Anaria-labeloraria-labelledbyyou set on the popup is kept. APopupused on its own warns in development when it opens with a dialog role and no name. Radio: a read-only radio no longer carriesaria-readonly, which the radio role does not allow. TheRadioGroupkeeps it.
On this page