Changelog

What each release of Unframework brings, from new language features to new tooling, and what it means for the components you compile.

0.5.0

One styled root for a link or a button

A button that becomes a link when it has an href is one of the first components a design system needs. Its root can now be a <component is> over tags, which takes what a parent gives it the way a one-element root does, whichever tag renders.

New

  • A parent's class and style merge into whichever tag renders, and so does a styled parent's scope attribute.
  • An attribute that only some of the tags take, like href on is={href ? "a" : "button"}, is accepted, and renders only on those tags. It used to be UF3006, which now only reports an attribute that no tag takes.
  • ComponentApi.root has a new value, "dynamic", with the tags in ComponentApi.rootTags. Code that handles every value of ComponentApi.root needs to handle it too.

Fixed

  • React compiles a listener on a <component is> over tags, which failed to emit before.
  • The font audit that checks each capture's text sends its requests together, so a page with hundreds of elements no longer comes close to the test's timeout.
0.4.1

Controls and embeds in the preview

This release comes through the preview: @uxfront/unframework 0.4.1 takes @unframework.dev/visual 0.5.0, which lets you try an example's props as you look at it, and show the example live on another page. If you run unframework preview, update @unframework.dev/visual to 0.5.0 along with it.

New

  • Selecting an example shows a group of controls for each component it renders. A value reaches every instance that doesn't set the prop itself, so a colours example can toggle disabled and keep each button's colour.
  • Each example has a URL of its own on each target, embed.html?example=<id>&target=<target>, so another page can show it in an <iframe>. controls=true shows its controls, theme=light or theme=dark sets its colour mode, and resize=true reports its height to the page that frames it.
  • @layout in an example's doc comment sets how it sits in its frame, the way display: flex would, like @layout column align-start gap.

Improved

  • The preview centres every example and component in its frame, with 1rem of padding, so a small component no longer sits in a corner. This moves every existing example, and @layout none gives the old full-width block back.
0.4.0

Async setup, directives and transitions

Most component libraries soon need a component that loads its data, a focus trap that several elements share, a dialog mounted at the end of the page and an element that animates in and out. This release adds each of them to the language, compiled to all seven targets, and Solid 2 as an eighth target you opt into.

New

  • Async setup: a component can be async and await what it needs at the top of its setup, like const user = await loadUser(id). The server renders what it loaded, and a hydrated page keeps the server's HTML while the setup runs again. A hand-written Vue parent wraps it in <Suspense>, and a Svelte app turns on its async mode.
  • Directives package a behaviour an element takes, like a focus trap or a click outside. Declare one with defineDirective and apply it as v-name={value}. Its hooks run in the browser only.
  • <Teleport to> mounts an element at the end of another part of the page once its component has mounted, like a dialog or a toast. A React package from unframework build --package now takes react-dom as a peer, for its createPortal.
  • <Transition> runs Vue's enter and leave classes on an element as it shows or hides, so your stylesheet animates it.
  • solid@2 compiles to Solid 2. Add it to targets in your configuration. solid still means Solid 1, and the default stays the seven targets.

Improved

  • A preview of one target, like unframework preview --target vue, opens with its frame across the whole canvas, with no Targets switch.
0.3.0

A new preview page, and a static build of it

unframework preview lets you see a component on every target at once while you work on it. It has a new page in this release, and unframework preview build writes it as a static site, so the people who use your components can browse them too.

New

  • The sidebar holds your examples as a tree of their categories, with a filter, and your components below them. The canvas shows every target side by side or one at a time, and a docked panel holds the controls. Press ? to list the keyboard shortcuts.
  • A doc comment on an example gives it a description, and @category, @title and @order set where the preview lists it, under what name and in what order. Without one, an example takes its category from its directory and its title from its file name. Code that builds an Example by hand now needs to set category and title.
  • unframework preview build writes the preview as a static site that any static host serves at any path.

Fixed

  • Svelte's server render marks the radio, or the checkbox in a group, whose value the v-model holds as checked, as every other target does. This fix first shipped in 0.2.1.
  • unframework build --package works on TypeScript 7.1 again for React and Solid, with declarations named Card.d.ts rather than Card.d.d.ts. On TypeScript 7.1, install tsdown 0.23.7 or later. This fix first shipped in 0.2.2.
0.2.0

One component, seven frameworks

A design system that serves several frameworks usually keeps a copy of each component per framework, and the copies drift apart. Unframework compiles one .uf.tsx component into native React, Vue, Svelte, Angular, Solid, Qwik and Astro components, so you write and fix each component once. This is its first release on npm, as @uxfront/unframework.

New

  • unframework build writes one tree per framework, and unframework build --package builds them into one package to publish. An app can import .uf.tsx components instead, and the bundler plugin, @unframework.dev/unplugin, compiles them to the app's framework in its own build.
  • unframework test runs your tests on every framework, unframework visual compares every framework's render of your examples with the reference framework's, and unframework preview shows them side by side while you work.
  • vite and liveFonts in unframework.config.ts let a design system styled through a Vite plugin, like Styleframe's, run unframework test, visual and preview with no wrapper.
Copyright © 2026