Skip to content

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:

    SizeTextRadiusIconGapPadding
    xs12px6px17px6px8px
    sm13px7px19px8px12px
    md14px8px20px12px16px
    lg16px10px23px16px20px
    xl18px12px26px20px24px

    At md the radius was 20px and the gap 16px; at lg and xl the padding was 24px and 32px. On a phone the md padding stops at 12px, where it went down to 8px. An icon with a size-* class keeps that size, and a font-size, padding, gap or radius class on the Alert still wins. A Text inside an Alert sets its own size, as before.

  • A Text, Col, Stack or Row placed directly in an Alert takes the free width of the row, so a Button after 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 with flexNone keeps 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 a Divider takes 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. A ghost Table 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, Chip or Button sat at 3.9:1 in danger and tertiary and at 3.8:1 in accent. --color-text-filled-danger and --color-text-filled-accent are now white (they were red-100 and rose-100) and --color-text-filled-tertiary is gray-50 (it was gray-200 in the light scheme and gray-50 in 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 audit reported 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, /vars and /tokens) had no type declarations. TypeScript 6 reports a side-effect import it cannot resolve as an error (TS2882), where earlier versions skipped it unless noUncheckedSideEffectImports was set. Each path now has a types target, an empty module, under the bundler, node16 and nodenext resolution 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

  • inertBackground on Modal, true by default. An open Modal makes the rest of the page inert, and false turns 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 the OverlayRegistrationRef type: 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 the FieldControlProps type: a control VaneUI does not ship (a plain <input>, a masked input, a date picker) takes the Field's id, aria-describedby, aria-invalid, required, disabled and readOnly by spreading useFieldControlProps(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, /textarea and /tooltip. They were built like the other component entries but missing from the package's exports, 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 is display: contents, so the layout is the same, and ref, className and style still go to the <input>. A selector that expects the <input> as a direct child of its parent (.form > input) no longer matches.
  • Checkbox: ref points at the <input> and is typed HTMLInputElement, like Radio and Switch. It pointed at the wrapper span. Code that used the ref to reach the wrapper reads ref.current.parentElement.
  • Table: Td and Th default to inheritAppearance where they had secondary, so they follow the Table (see Fixed). The default table looks the same, but its cells no longer carry data-appearance and data-variant attributes.
  • Menu: the item focused last is the menu's one tab stop (tabindex="0", every other item -1), and hovering an item focuses it.
  • Menu and PopupTrigger give a trigger without an id a generated one, which the popup's aria-labelledby points 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.
  • Input keeps focus and the typed text when invalid changes, on its own and through <Field error>. Before, the <input> was replaced each time, so validating while the user typed dropped the focus.
  • A Tooltip and a Menu or PopupTrigger on 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 a MenuItem returns 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, and clampHeight limits the scrolling area. Before, the last items ran off the screen, or out of the clamped box.
  • An Overlay opened while a Modal is open stays usable. Before, the Modal made it inert.
  • Checkbox, Switch and Radio: a readOnly control no longer calls onChange, also when the state comes from a RadioGroup or a Field. Before, a controlled form received the flipped value while the control on screen stayed as it was. onClick is still called.
  • Chip, Badge and Code: disabled with href renders a link that cannot be followed (no href, aria-disabled="true", still focusable), like a disabled Button link. Before, the link stayed in the tab order and Enter followed it.
  • Checkbox and Radio: the checked state is visible in the outline and ghost variants. Before, the box took the page color and the mark floated on the page, and a ghost Checkbox showed no mark at all.
  • Field: an empty string for error or description means no message. Before, error="" marked the control invalid and rendered an empty paragraph.
  • Card: CardHeader, CardBody and CardFooter are found inside a fragment, behind memo(), 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 explicit padding, paddingX or paddingY keeps 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. A Tr, Thead, Tbody or Tfoot with its own appearance and variant passes them to its cells, and a cell with its own appearance (<Td danger>) keeps it.
  • A className that overrides a responsive value holds at every width: <Section className="py-8"> keeps py-8 on 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 covers py-*, px-*, p-*, gap-* and font-size classes; a one-sided class such as pt-* still gives way below 1024px.
  • ThemeProvider with themeDefaults, extraClasses or theme copies only the theme nodes it changes. Tooltip and Menu each mount one, and rendering 300 of either on the server took about 270ms; it now takes about 20ms.

Accessibility

  • The popup of a PopupTrigger or a Menu is named by its trigger through aria-labelledby. Before, the dialog had no accessible name. An aria-label or aria-labelledby you set on the popup is kept. A Popup used on its own warns in development when it opens with a dialog role and no name.
  • Radio: a read-only radio no longer carries aria-readonly, which the radio role does not allow. The RadioGroup keeps it.

Full diff