Get started
Introduction
Components that feel good to use. For React, or as plain CSS in any HTML.
TL;DR
- 94 everyday components (buttons, inputs, dialogs, a navbar) and 42 motion pieces (price charts, order books, checkout flows).
- React 19, Tailwind CSS v4, TypeScript. One file per component.
- Not on React? The main kit also ships as plain CSS classes for any HTML: Go, Django, Rails, Laravel or htmx.
- Add one with
pnpm dlx asta-ui@latest add dialog, orpnpm add asta-uiand import it. - Built on Radix or Base UI. You pick.
- Still in beta. Names and props can change before 1.0. Check the changelog before you update.
Why we made it
Most UI kits look fine in a screenshot. Then you click around and nothing feels like anything.
We build product UI for clients at Astabyte. Over time we kept rewriting the same pieces: a chart traders scrub all day, a card form that has to feel safe, a cart that makes adding one more item feel good. So we cleaned them up and put them here.
What’s inside
The kit. Everyday building blocks, grouped from small to big: atoms (button, input), molecules (select, tabs) and organisms (navbar, sign-in card).
The motion lab. Bigger pieces from real use cases: trading, payments, ecommerce. Each one has one motion moment, tuned by hand.
Every piece works with a mouse, a finger and a keyboard. Turn on reduced motion and it calms down.
How it works
Same idea as shadcn. You run one command and the source file lands in your repo. Now it’s your code. Change whatever you want.
Don’t want to own the files? Install the asta-ui package instead and get updates with pnpm update. See Install as a package.
Colours come from a few tokens like paper, ink and brand. Change them once and every component follows.
Radix or Base UI
Dialogs, menus and selects need focus traps, keyboard support and screen-reader labels. We don’t rebuild that. It comes from radix-ui or @base-ui/react.
Both builds have the same props, look and motion. Use the one your project already has. Starting fresh? Either is fine. Use the Primitive switch on any component page to see both.
Not on React?
HTML + CSS. The same look as semantic classes like .asta-btn, plus a small script for menus, dialogs and toasts. Works with Go html/template, Rails, Django, Laravel, htmx or a static page. See HTML + CSS.
The motion lab is React only for now.
Next: Installation, or pick a component from the sidebar.