Fragiola

Getting started

Installation

Add the primitives to a React 19, Vue 3.5 or Angular 22 app with one package, the one for your framework, which brings the DOM toolkit with it.

Each framework has its own package. It depends on the framework-free DOM toolkit, @fragiola/primitives, at the exact same version, so you install one package.

React

@fragiola/primitives-react needs React 19 (react and react-dom).

pnpm add @fragiola/primitives-react

Import each component from its own entry:

import { Dialog } from "@fragiola/primitives-react/dialog";
import { Tabs } from "@fragiola/primitives-react/tabs";

Styling

The packages ship no CSS. Style the parts with any tool, by their class (React's className, class in Vue and Angular) and by their part and state attributes. The examples use Tailwind CSS v4 recipes, one class string per part.