@implementjs/primitives
v0.0.14
Published
Unstyled, accessible building blocks for implement. They own the behavior and the accessibility, you own the look.
Maintainers
Readme
@implementjs/primitives
Unstyled, accessible building blocks for implement. They own the behavior, the keyboard interaction and the ARIA wiring; you own every class name.
npm install @implementjs/primitivesimport { A, Div } from "@implementjs/core";
import { Collapsible, CollapsibleContent, CollapsibleTrigger } from "@implementjs/primitives";
function Links() {
return Collapsible(
{},
CollapsibleTrigger("What's next?"),
CollapsibleContent(Div(A({ href: "/docs" }, "Docs"), A({ href: "/kit" }, "kit"))),
);
}Accordion, dialog, dropdown menu, select, tabs, tooltip, toggle group and the rest of the usual set are all here, each as a root plus the parts it composes from.
Full documentation: implementjs.dev/primitives
