Introduction
Components for Datastar, in the style of shadcn/ui: server-rendered JSX and plain CSS that you copy into your project and own.
dui isn't a library you install and import. Its CLI copies each component's code into your project, in a ui/ folder beside a lib/ folder with what they share, so you can change it as you like.
- Server-rendered. Components are functions from props to HTML strings, with a tiny JSX runtime and no virtual DOM.
- Datastar-ready. Attributes like
data-bindanddata-on:clickgo straight on the element. - Plain CSS. Each component has a CSS file of its own, themed with shadcn/ui's tokens.
Start with Installation, then browse the components. The code is on GitHub.