# Unframework > Unframework is the compiler that speaks seven UI frameworks: write a component once, and it compiles to native React, Vue, Svelte, Angular, Solid, Qwik and Astro code, and to whichever faster framework comes next, with no migration. ## Documentation Sets - [Unframework](https://unframework.dev/llms-full.txt) ## Docs - [Introduction](https://unframework.dev/raw/docs/getting-started/introduction.md): Unframework is the compiler that speaks seven UI frameworks: write a component once, and get native React, Vue, Svelte, Angular, Solid, Qwik and Astro code. - [Installation](https://unframework.dev/raw/docs/getting-started/installation.md): What to install from npm, for a design system that builds its components with the CLI and for an app that compiles them with the bundler plugin. - [Props](https://unframework.dev/raw/docs/components/props.md): A component takes its props as one typed parameter, destructured with static defaults or read as props.x, and every framework declares them its own way. - [Templates](https://unframework.dev/raw/docs/components/templates.md): The JSX a component returns is its template. Its expressions, text, conditionals, lists and fragments compile to each framework's own template syntax. - [Attributes](https://unframework.dev/raw/docs/components/attributes.md): Attributes take HTML's names and render the same value on every target. Bound values, booleans, ARIA, data attributes, class, style and typed spreads. - [SVG](https://unframework.dev/raw/docs/components/svg.md): Inline SVG renders the same DOM, in SVG's namespace, on every target, with SVG's case-exact element and attribute names. - [State](https://unframework.dev/raw/docs/components/state.md): A component's setup declares state with ref, derives values with computed and keeps constants and functions in order. Each framework gets its own primitives. - [Events](https://unframework.dev/raw/docs/components/events.md): Listeners take Vue's event names and keep the DOM's semantics. defineEmits declares the events a component emits, and each framework gets its own callbacks. - [Effects](https://unframework.dev/raw/docs/components/effects.md): watch calls back when its sources change, and watchEffect reruns when what it reads changes. Effects run in the browser, with Vue's timing, on every target. - [Lifecycle](https://unframework.dev/raw/docs/components/lifecycle.md): onMounted runs once the component's DOM is in the document, onUnmounted when it's removed, and nextTick waits for the DOM to update. None runs on the server. - [Template refs and ids](https://unframework.dev/raw/docs/components/template-refs-and-ids.md): useTemplateRef gives client code an element that ref attaches, and useId gives an id that is unique in its app. Every framework gets its own refs and ids. - [Child components](https://unframework.dev/raw/docs/components/child-components.md): A component imports another from its .uf.tsx file and renders it as a tag, with props and listeners. Every framework imports the child's own output. - [Slots](https://unframework.dev/raw/docs/components/slots.md): defineSlots declares a component's slots, with fallbacks, scoped props, a presence test and forwarding. A parent fills them with children and a slot object. - [Models](https://unframework.dev/raw/docs/components/models.md): defineModel declares a value a parent binds two ways with v-model, and v-model on a form control binds to a ref. Each framework gets its own two-way binding. - [Fallthrough](https://unframework.dev/raw/docs/components/fallthrough.md): A parent's class and style on a component fall through to its root element, merged with the root's own. defineOptions({ inheritAttrs: false }) turns it off. - [Expose and component refs](https://unframework.dev/raw/docs/components/expose-and-refs.md): defineExpose lists the functions a parent may call through a template ref. Each framework exposes them its own way, like React's imperative handle. - [Context](https://unframework.dev/raw/docs/components/context.md): provide and inject share a value with every descendant under a key. Each framework gets its own context, from React's createContext to Angular's InjectionToken. - [Dynamic components](https://unframework.dev/raw/docs/components/dynamic-components.md): renders one of a set of tags or components the compiler knows, chosen by a condition or a prop. Each framework gets its own dynamic element. - [Styles](https://unframework.dev/raw/docs/components/styles.md): A component's styles are a plain CSS file beside it. The compiler scopes the sheet once, with Vue's algorithm, and every framework attaches the same sheet. - [Styling engines](https://unframework.dev/raw/docs/components/styling-engines.md): A styling engine works through its Vite plugin or the files it generates, and its imports reach every output as written. Styleframe is the worked example. - [Types and generics](https://unframework.dev/raw/docs/components/types-and-generics.md): Props types can live in their own files, a child's module or a package, components can be generic, and exported types reach consumers in every framework. - [Composables](https://unframework.dev/raw/docs/components/composables.md): A composable is shared reactive logic, written once in a .uf.ts module. Each framework gets its own idiom, like a React hook or a Svelte rune module. - [Shared modules](https://unframework.dev/raw/docs/components/shared-modules.md): Plain .ts modules hold values, types and pure functions that components share, like design tokens. The compiler copies each into every output tree unchanged. - [Raw HTML](https://unframework.dev/raw/docs/components/raw-html.md): innerHTML sets an element's content to a string of markup. Every framework renders it as written, and the compiler warns that the markup isn't escaped. - [Teleport](https://unframework.dev/raw/docs/components/teleport.md): mounts an element elsewhere on the page, like a dialog. Every framework mounts it once the component has mounted, never on the server. - [Directives](https://unframework.dev/raw/docs/components/directives.md): defineDirective declares a behaviour an element takes, like a focus trap, and v-name applies it. Every framework runs its hooks in the browser, in Vue's order. - [Transitions](https://unframework.dev/raw/docs/components/transitions.md): A transition runs Vue's enter and leave classes on an element as a condition shows or hides it, so your CSS animates it on every framework. - [Async setup](https://unframework.dev/raw/docs/components/async-setup.md): An async component awaits its data at the top of its setup, and the server renders what it loaded on every framework, then hydrates it in place. - [Targets](https://unframework.dev/raw/docs/reference/targets.md): What each of the eight targets writes, the capability matrix of where frameworks differ, how each target takes events, and how Angular hosts a component. - [Diagnostics](https://unframework.dev/raw/docs/reference/diagnostics.md): Every diagnostic the Unframework compiler reports, by its stable UF code, with what it means and how to fix it. - [Semantics](https://unframework.dev/raw/docs/reference/semantics.md): The semantics contract, version 1: what every target guarantees, from setup and state to events and rendering, and the corpus case that checks each rule. - [Configuration](https://unframework.dev/raw/docs/tooling/configuration.md): unframework.config.ts tells the CLI which frameworks to build, where your components live and where the outputs go. Every mistake in it names its field. - [CLI](https://unframework.dev/raw/docs/tooling/cli.md): The unframework command builds every target's source tree, checks a project and prints its diagnostics, explains a diagnostic code and scaffolds a project. - [Bundler plugin](https://unframework.dev/raw/docs/tooling/bundler-plugin.md): The bundler plugin lets an app import a .uf.tsx file as a component of its own framework, with hot updates and source maps, in Vite and in Astro. - [Packaging](https://unframework.dev/raw/docs/tooling/packaging.md): unframework build --package writes one package you can publish, with each framework's components in its own format, a subpath per framework and optional peers. - [Testing](https://unframework.dev/raw/docs/tooling/testing.md): @unframework.dev/testing runs one spec on all seven targets and compares them with expectParity: the DOM, the ARIA tree, the trace, the pixels and axe. - [Visual parity](https://unframework.dev/raw/docs/tooling/visual.md): unframework visual renders every example on every target and compares its geometry and pixels with the reference's, live or against committed baselines. - [Preview](https://unframework.dev/raw/docs/tooling/preview.md): unframework preview shows every example and component on every target side by side, with controls for their props, and preview build writes it as a static site.