Skip to content

Reference

[09] Reference

Changelog 1.4

Release notes for @vaneui/ui 1.4.0 to 1.4.6, released 2026-08-20 to 2026-10-29: added props and components, changes and fixes. The changelog page has the latest version.

1.4.6

2026-10-29

Breakpoint props for showing an element only on smaller screens and for full width below a breakpoint, so sites no longer need lg:hidden or max-mobile:w-full.

Added

  • mobileShow, tabletShow and desktopShow: show an element only below 768, 1024 or 1280px, the reverse of mobileHide and friends. They combine with a hide prop, so <Row mobileHide tabletShow> shows only between 768 and 1024px.
  • mobileWFull, tabletWFull and desktopWFull: full width below 768, 1024 or 1280px, keeping the component's base width above it. <Button mobileWFull> fills a stacked row on a phone and stays fit width on desktop. A Select applies both families to its wrapper.

Full diff

1.4.5

2026-10-29

Additions that let vaneui.com drop most of its custom CSS: a progress bar, divided grids, strong borders, NavLink indicators, shadow sizes and real light subtrees.

Added

  • Progress: a determinate bar, <Progress value={40} aria-label="Upload" />. A role="progressbar" track with aria-valuenow, aria-valuemin and aria-valuemax; value is clamped to 0 to max (100 by default). The fill is its own themed element (progress.fill), a filled bar in the appearance color over a neutral track, and it follows the track's shape and transition/noTransition. Heights run 2, 4, 8, 12 and 16px from xs to xl; pill by default. The fill eases to a new value, with no motion under reduced motion.
  • divided on Grid2 to Grid6: 1px lines in the divider color between and around the cells, in place of the gap.
  • strongBorder on layout components (Row, Col, Stack, Grid*, Container, Card, Section): the border takes the appearance's strong color, the one its focus ring uses. A filled Card, whose border is otherwise transparent, shows it too.
  • indicatorStart and indicatorBottom on NavLink: a 1px rail on the start edge that turns into a 2px accent mark when active or aria-selected, or an accent bar under the active tab. They are inset shadows, so the text does not move. The rail flips in right-to-left text.
  • shadowXs to shadowXl: fix the drop shadow size on the component's own ramp (compact for UI components, deeper for layout ones), whatever the component's size. shadow still follows the size.
  • pointerEventsNone/pointerEventsAuto and the whitespace* props on layout components: Row, Col, Stack, Grid*, Container, Card and Section.
  • noShrink on Img, so an image keeps its size in a tight Row.
  • Selected options: a NavLink or MenuItem with aria-selected="true" (an option in a listbox, like a search result) takes the hover fill.

Changed

  • Dark mode colors are light-dark() pairs. The dark block's colors are now one list of light-dark(light, dark) pairs on every data-theme element, and data-theme sets color-scheme, which picks the side. Pages without data-theme keep the @theme values and are unaffected. Uncompiled, light-dark() needs Chrome 123, Firefox 120 or Safari 17.5; bundlers that compile it for older browsers (Next.js does by default) keep those working. To change a color in both schemes, re-declare it as a pair under :root[data-theme], [data-theme]:not(:root), after the VaneUI stylesheet.

Fixed

  • data-theme="light" makes a subtree light inside a dark page or wrapper. It only reset color-scheme, so the dark colors still came through. It now resolves every pair to its light side. On <html> it changes nothing, so token customizations made with @theme keep working.

1.4.4

2026-10-10

A consistency pass on Tooltip: it is now sized and coloured as a label, not a panel.

Added

  • Tooltip takes Popup props directly, like Menu: <Tooltip lg placeBottom arrow>. Size, appearance, variant, shape, placement, arrow, offset and className style the tooltip. popupProps still works and is combined with them.

Changed

  • Tooltip is filled in ink: near-black, and near-white in dark mode, like a filled primary Button. It was gray. <Tooltip secondary> or themeDefaults={{ tooltip: { secondary: true } }} brings the gray back.
  • Tooltip text follows its size: 10, 12, 14, 16 and 18px from xs to xl, one step under a Button of the same size. It inherited the page's text (16px at every size).
  • Tooltip padding and radius follow the Button ramp, so a tooltip is about as tall as a Button of the same size (29px instead of 44px at the default sm). Padding no longer shrinks on tablets and phones.
  • Long tooltips wrap inside a cap that grows with size (16–32rem, 20rem at sm) instead of running on one line across the page.

Fixed

  • Popups placed above or below stay on screen next to an anchor at the viewport edge in browsers with CSS anchor positioning. They were centred on the anchor and cut off; they now line up with the anchor's edge, and the arrow follows.

1.4.3

2026-09-30

Fixes from a review of the components composed into real screens (dashboards, forms, landing pages, articles, overlays, a storefront).

Added

  • Table and Alert take a font family (fontSans, fontMono, …) and default to fontSans. Their cells and raw text used to fall back to the page's own font (a serif on an unstyled page), because the scoped reset never sets one.

Changed

  • Input and Select are as tall as Button at every size. They used a looser line height, so a field was 4.8px taller than the button beside it at md. Their corner radius now matches too. Every Input and Select gets slightly shorter.
  • List markers sit inside the list box. The marker gutter was 12px at md, so bullets and 10. hung outside it; it is now 16–32px by size. An icon item's icon moves into the same gutter, so icon items and plain items share one text column.
  • transition no longer animates the focus ring, only colors, shadows and transforms.

Fixed

  • Words no longer break mid-word in rows and tables. The long-token wrapping added for URLs let a short label beside a full-width control shrink to one letter per line, and split prices and names in table cells. Titles, lists and blockquotes now wrap long tokens too, instead of overflowing on a phone.
  • An unselected RadioGroup no longer shows every radio as selected.
  • The invalid state is visible. Input, Select and Textarea drew their danger ring at 30% strength, fainter than a normal field; it is now full strength. Text fields also use the form-control border token, like Checkbox, Radio and Switch.
  • The active NavLink stands out: it is semibold on a stronger tint, and hover no longer looks the same as the current page. A trailing Badge sits at the row's end.
  • Link and a Card with href draw a visible focus ring in dark mode and on colored surfaces. It used the browser's default color.
  • Text stays readable on filled surfaces. Secondary and tertiary text, ghost buttons and links on a filled Card or Section take the surface's text color.
  • filled without an appearance no longer turns text white on an unpainted surface.
  • Whole-page dark mode paints the page, so cards no longer sit darker than the page. Any background you set on html or body still wins.
  • Mark shows a visible highlight.
  • An svg in running text stays inline instead of breaking the line.
  • Tooltip, Popup and menus render in the library font. A string title on Modal renders as a Title.
  • Modal returns focus to the button that opened it on every close path.
  • Escape inside a Menu closes only that menu, not the Modal around it or the whole menu tree.
  • Menu items sit flush again; a 16px gap had appeared between them.
  • Popups placed above or below keep their own width instead of shrinking to a small trigger, so tooltips no longer wrap one word per line.
  • End-aligned and left popups stay at their trigger under dir="rtl".
  • Modal keeps a margin on a phone instead of running edge to edge.
  • ModalCloseButton keeps its own look under app-wide button.main defaults (a filled default made the × invisible) and is square like IconButton.
  • A loading Button with an icon keeps its size.
  • A read-only Checkbox no longer toggles, a read-only Select can no longer be changed, and read-only toggles dim like read-only text fields.
  • Field passes disabled, required and readOnly to a child control, including every Radio of a child RadioGroup. Control-only attributes no longer land on its wrapper div.
  • <Link sm> renders at sm; an explicit size used to be ignored.
  • A size set on the switch input theme reaches the track.
  • A disabled Link looks disabled, and disabled fields show the not-allowed cursor. Disabled opacity now reads the --disabled-opacity token.
  • Select stays on one line in a row, noShrink reaches it, and a placeholder option is muted like an Input placeholder.
  • Textarea honours rows below three lines.
  • A clickable Chip shows the focus ring, and linked Card, Chip and Badge get a hover tint.
  • Hovering another menu item closes an open sibling submenu, and a submenu's trigger keeps its tint while the submenu is open.
  • Alert text uses body line-height and a leading icon centres on the first line.
  • A Card with href warns in development when it contains a button, link or field.

1.4.2

2026-08-22

Fixed

  • Field's label now scales with the field. The label, description and error were pinned to sm at every size, so <Field xl> grew the control and left its label behind. The label now takes the field's size and the help and error text sit one step below it.
  • Field's inline checkbox and switch line up with their label. The control resolved its line box against the page root instead of the label's font metrics, so it sat high and the switch track overflowed its own box.
  • Field's help and error text stay readable on a filled surface. Their pinned secondary and danger colors lost contrast on a fill; under any filled ancestor, the field itself or a Card or Row above it, they now take that surface's text color.

1.4.1

2026-08-22

Added

  • Field can render its own control, instead of only wrapping one passed as a child. Pass type (a control kind such as select, or a native input type such as password, email, date) or one of the six booleans textInput, textarea, select, checkbox, switch, radiogroup. Surface props (appearance, variant, shape, border, ring, shadow, transparent) route to the rendered control, native attributes go to the control, and ref now points at the control instead of the wrapper. Layout props and className stay on the wrapper. Children still reach the control, so <option> and <Radio> children keep working. checkbox and switch lay out inline, control first and label beside it, unless an explicit row/column falls back to the plain stacked layout. Naming no control leaves today's children mode completely unchanged.

Changed

  • Field's type prop is now a closed union of the control kinds and native input types above. It previously accepted any string, inherited from the anchor attributes Field spreads for tag switching, and Field has no href-based tag switching of its own, so a value like <Field type="button"> was already reaching the wrapper <div> and emitting an invalid type attribute at runtime. The type change surfaces that pre-existing bug at compile time rather than removing a working option.

Fixed

  • The conflicting-props dev warning no longer fires on composable side toggles. border and margin side toggles compose by design, so <Card borderT borderL> and <Card marginT marginB> are correct usage, yet every component warned that they conflicted. The warning now skips composable categories, matching the rule the resolver itself already used. It still warns in the one case that is genuinely ambiguous there: when a no* reset is combined with a side toggle (<Card borderT noBorder>), where the reset discards the toggle and wins.
  • Field no longer emits a dangling htmlFor for a radio group. A radiogroup is not a labelable element and never claims the generated id, so the label pointed at nothing. Field now omits htmlFor for a radio group in both modes; the accessible name continues to come from aria-labelledby.

1.4.0

2026-08-20

Changed

  • Portalled floating content waits for hydration before it mounts. A portal has no server markup, so Popup, Modal and Overlay returned null during SSR — but the first client render portalled immediately, giving React DOM it never emitted server-side and forcing it to throw the subtree away and rebuild it. They now stay closed through the hydrating render and mount on the next one.

    The gate is on the open state rather than the portal call, so the transition and every element-dependent effect sit downstream of it and run once the element actually attaches. Two consequences worth knowing:

    • Portalled content that is open on its first render now transitions in (entering → entered) instead of appearing already entered. Content opened by interaction is unaffected: hydration is long since complete.
    • portal={false} is untouched. Inline content has server markup, so it still renders server-side and still starts entered — the SSR test that pins this behaviour is unchanged.

    Menu now tracks its content element in state rather than a bare ref. Its "focus the first item on open" effect was keyed on the open flag alone, so a defaultOpen menu focused nothing once the content mounted a render later.