Quarterly target
Recent activity
- INV-045 sent2h
- Payment received5h
- INV-043 overdue1d
Components
Every component below is live, and the code beside it is exactly what you paste. They need two stylesheets: @ansh-ui/tokens/ansh.css and @ansh-ui/react/styles.css.
Shimmer and glow are pure CSS. Magnetic pull and ripple come from the engine's behaviours.
import { Button } from '@ansh-ui/react'
<Button variant="shimmer" magneticStrength={14}>Get started</Button>
<Button variant="glow" glowColors={['#0275f4', '#9f0550']}>Upgrade</Button>
<Button variant="liquid" ripple>Deploy</Button>
<Button variant="ghost">Docs</Button>| Component | React | Vue | Import from | Size (min + gzip) | axe-core |
|---|---|---|---|---|---|
Button | Yes | Yes | @ansh-ui/react | 12.9 KB | Not covered |
Size is what a React app adds by importing only that component, tree-shaken and minified, with React itself excluded. Components share engine code, so sizes do not add up. Every component renders the same markup on the server and the first client frame.
The spotlight writes two CSS custom properties on pointer move — no React re-render.
A highlight follows your pointer across the surface.
A conic gradient rotating through an @property angle.
import { SpotlightCard, GlowCard } from '@ansh-ui/react'
<SpotlightCard>
<h3>Fast by default</h3>
<p>A highlight follows your pointer.</p>
</SpotlightCard>
<GlowCard colors={['#0275f4', '#9f0550']} duration={6}>
<h3>Animated border</h3>
<p>A conic gradient rotating via @property.</p>
</GlowCard>| Component | React | Vue | Import from | Size (min + gzip) | axe-core |
|---|---|---|---|---|---|
SpotlightCard | Yes | Yes | @ansh-ui/react | 0.7 KB | Not covered |
GlowCard | Yes | Yes | @ansh-ui/react | 0.4 KB | Not covered |
Size is what a React app adds by importing only that component, tree-shaken and minified, with React itself excluded. Components share engine code, so sizes do not add up. Every component renders the same markup on the server and the first client frame.
Tiles span columns and rows; collapses to one column below 768px.
Spans two columns.
Tiles are ordinary cards, so they compose.
import { BentoGrid, BentoItem, TiltCard3D } from '@ansh-ui/react'
<BentoGrid columns={3}>
<BentoItem span={2}>Analytics</BentoItem>
<BentoItem>Realtime</BentoItem>
<BentoItem>Edge</BentoItem>
<BentoItem span={2}>Observability</BentoItem>
</BentoGrid>| Component | React | Vue | Import from | Size (min + gzip) | axe-core |
|---|---|---|---|---|---|
BentoGrid | Yes | Yes | @ansh-ui/react | 0.3 KB | Not covered |
BentoItem | Yes | Yes | @ansh-ui/react | 0.3 KB | Not covered |
TiltCard3D | Yes | Yes | @ansh-ui/react | 3.7 KB | Not covered |
Size is what a React app adds by importing only that component, tree-shaken and minified, with React itself excluded. Components share engine code, so sizes do not add up. Every component renders the same markup on the server and the first client frame.
CSS-only sibling of TiltCard. Reach for TiltCard when the motion should feel weighted.
Rotates toward the pointer, eases back on leave.
Same component, smaller maximum rotation.
import { TiltCard3D } from '@ansh-ui/react'
<TiltCard3D max={14}>
<h3>Hover me</h3>
</TiltCard3D>| Component | React | Vue | Import from | Size (min + gzip) | axe-core |
|---|---|---|---|---|---|
TiltCard3D | Yes | Yes | @ansh-ui/react | 3.7 KB | Not covered |
Size is what a React app adds by importing only that component, tree-shaken and minified, with React itself excluded. Components share engine code, so sizes do not add up. Every component renders the same markup on the server and the first client frame.
Every tile scales by its distance from the pointer, eased per frame — not a hover state.
import { Dock } from '@ansh-ui/react'
<Dock
items={[
{ icon: '◧', label: 'Finder' },
{ icon: '✉', label: 'Mail' },
{ icon: '⌘', label: 'Terminal' },
]}
size={48}
magnification={80}
/>| Component | React | Vue | Import from | Size (min + gzip) | axe-core |
|---|---|---|---|---|---|
Dock | Yes | Yes | @ansh-ui/react | 3.9 KB | Not covered |
Size is what a React app adds by importing only that component, tree-shaken and minified, with React itself excluded. Components share engine code, so sizes do not add up. Every component renders the same markup on the server and the first client frame.
Full combobox pattern: focus stays in the input, selection moves via aria-activedescendant.
import { CommandPalette, useCommandShortcut } from '@ansh-ui/react'
const [open, setOpen] = useState(false)
useCommandShortcut(() => setOpen((v) => !v)) // ⌘K / Ctrl+K
<CommandPalette
open={open}
onOpenChange={setOpen}
items={[
{ id: 'new', label: 'New project', group: 'Actions', shortcut: '⌘N' },
{ id: 'docs', label: 'Open documentation', group: 'Navigate' },
]}
/>| Component | React | Vue | Import from | Size (min + gzip) | axe-core |
|---|---|---|---|---|---|
CommandPalette | Yes | Yes | @ansh-ui/react/overlay | 1.6 KB | Not covered |
Size is what a React app adds by importing only that component, tree-shaken and minified, with React itself excluded. Components share engine code, so sizes do not add up. Every component renders the same markup on the server and the first client frame.
Each keeps the complete string in the DOM for assistive technology, whatever is visible.
import { Typewriter, ShinyText, NumberTicker } from '@ansh-ui/react'
<Typewriter words={['ship faster', 'sleep better', 'stay sane']} />
<ShinyText duration={3}>Premium by default</ShinyText>
<NumberTicker value={99420} suffix="+" />| Component | React | Vue | Import from | Size (min + gzip) | axe-core |
|---|---|---|---|---|---|
Typewriter | Yes | Yes | @ansh-ui/react | 4.0 KB | Not covered |
ShinyText | Yes | Yes | @ansh-ui/react | 0.3 KB | Not covered |
NumberTicker | Yes | Yes | @ansh-ui/react | 4.5 KB | Not covered |
Size is what a React app adds by importing only that component, tree-shaken and minified, with React itself excluded. Components share engine code, so sizes do not add up. Every component renders the same markup on the server and the first client frame.
The rotator sizes itself to the longest word up front, so the sentence around it never reflows.
import { TextRotate, ScrambleText } from '@ansh-ui/react'
<h2>Built for <TextRotate words={['designers', 'engineers', 'teams']} /></h2>
<ScrambleText as="p" trigger="view">Resolves out of noise on scroll.</ScrambleText>| Component | React | Vue | Import from | Size (min + gzip) | axe-core |
|---|---|---|---|---|---|
TextRotate | Yes | Yes | @ansh-ui/react | 0.8 KB | Not covered |
ScrambleText | Yes | Yes | @ansh-ui/react | 6.4 KB | Not covered |
Size is what a React app adds by importing only that component, tree-shaken and minified, with React itself excluded. Components share engine code, so sizes do not add up. Every component renders the same markup on the server and the first client frame.
Clips the top layer rather than resizing it, so the content is uncovered instead of squashed. Arrow keys work.
import { BeforeAfter } from '@ansh-ui/react'
<BeforeAfter
defaultValue={55}
before={<img src="/after.png" alt="" />}
after={<img src="/before.png" alt="" />}
/>| Component | React | Vue | Import from | Size (min + gzip) | axe-core |
|---|---|---|---|---|---|
BeforeAfter | Yes | Yes | @ansh-ui/react | 1.2 KB | Not covered |
Size is what a React app adds by importing only that component, tree-shaken and minified, with React itself excluded. Components share engine code, so sizes do not add up. Every component renders the same markup on the server and the first client frame.
A frame around real DOM, not a picture of one — whatever you put inside stays interactive.
Motion, refined.
Live DOM inside the frame.
Ansh
Same components, small screen.
import { DeviceMockup } from '@ansh-ui/react'
<DeviceMockup url="ansh.techiesofepi.com" label="Dashboard preview">
<YourApp />
</DeviceMockup>
<DeviceMockup variant="phone">
<YourApp />
</DeviceMockup>| Component | React | Vue | Import from | Size (min + gzip) | axe-core |
|---|---|---|---|---|---|
DeviceMockup | Yes | Yes | @ansh-ui/react | 0.5 KB | Not covered |
Size is what a React app adds by importing only that component, tree-shaken and minified, with React itself excluded. Components share engine code, so sizes do not add up. Every component renders the same markup on the server and the first client frame.
Auto-advances, and stops the moment you hover or tab into it — a WCAG pause/stop concern, not a preference.
03
Springs in closed form
import { CardStack } from '@ansh-ui/react'
<CardStack items={[<CardA />, <CardB />, <CardC />]} interval={3.5} />| Component | React | Vue | Import from | Size (min + gzip) | axe-core |
|---|---|---|---|---|---|
CardStack | Yes | Yes | @ansh-ui/react | 1.3 KB | Not covered |
Size is what a React app adds by importing only that component, tree-shaken and minified, with React itself excluded. Components share engine code, so sizes do not add up. Every component renders the same markup on the server and the first client frame.
Spinners carry role=status; skeletons are aria-hidden with aria-busy on the container.
import { Spinner, LoadingDots, Skeleton, useToast } from '@ansh-ui/react'
<Spinner size={28} />
<LoadingDots />
<Skeleton width={180} height={12} />
const { toast } = useToast()
toast({ title: 'Deployed', message: 'Live in 1.2s', variant: 'success' })| Component | React | Vue | Import from | Size (min + gzip) | axe-core |
|---|---|---|---|---|---|
Spinner | Yes | Yes | @ansh-ui/react | 0.4 KB | Not covered |
LoadingDots | Yes | Yes | @ansh-ui/react | 0.4 KB | Not covered |
Skeleton | Yes | Yes | @ansh-ui/react | 0.4 KB | Not covered |
Size is what a React app adds by importing only that component, tree-shaken and minified, with React itself excluded. Components share engine code, so sizes do not add up. Every component renders the same markup on the server and the first client frame.
The featured plan is marked by elevation, a badge and a filled CTA — never colour alone.
Everything in this repository, MIT licensed.
GPU-backed effects and the premium component set.
For teams shipping at scale.
import { PricingTable } from '@ansh-ui/react'
<PricingTable plans={[
{ name: 'Free', price: '$0', period: '/month', features: ['…'],
cta: { label: 'Get started', variant: 'ghost' } },
{ name: 'Pro', price: '$149', period: 'once', featured: true, features: ['…'],
cta: { label: 'Upgrade to Pro' } },
]} />| Component | React | Vue | Import from | Size (min + gzip) | axe-core |
|---|---|---|---|---|---|
PricingTable | Yes | Yes | @ansh-ui/react | 13.4 KB | Not covered |
Size is what a React app adds by importing only that component, tree-shaken and minified, with React itself excluded. Components share engine code, so sizes do not add up. Every component renders the same markup on the server and the first client frame.
Animates to intrinsic height via grid-template-rows 0fr→1fr — no JS measurement.
import { FAQAccordion } from '@ansh-ui/react'
<FAQAccordion
defaultOpen={0}
items={[
{ question: 'Does it work with Next.js?', answer: 'Yes…' },
]}
/>| Component | React | Vue | Import from | Size (min + gzip) | axe-core |
|---|---|---|---|---|---|
FAQAccordion | Yes | Yes | @ansh-ui/react | 0.8 KB | Not covered |
Size is what a React app adds by importing only that component, tree-shaken and minified, with React itself excluded. Components share engine code, so sizes do not add up. Every component renders the same markup on the server and the first client frame.
Catalogue
The components an application is actually built from — forms, tables, overlays, navigation. Each one is live below, and the code beside it is exactly what you paste. They need two stylesheets: @ansh-ui/tokens/ansh.css and @ansh-ui/react/styles.css.
Every control works controlled or uncontrolled, and wires its own label, description and error through the Field wrapper.
Field generates the ids and links label, hint and error to the control. Six attributes across four elements, done once.
We'll never share it.
Please add a little more detail.
import { Field, Input, Textarea } from '@ansh-ui/react'
<Field label="Work email" description="We'll never share it." required>
<Input type="email" placeholder="ada@example.com" prefix="✉" />
</Field>
<Field label="Notes" error="Please add a little more detail.">
<Textarea autoResize showCount maxLength={280} />
</Field>| Component | React | Vue | Import from | Size (min + gzip) | axe-core |
|---|---|---|---|---|---|
Field | Yes | Yes | @ansh-ui/react/form | 0.7 KB | Checked |
Input | Yes | Yes | @ansh-ui/react/form | 1.2 KB | Checked |
Textarea | Yes | Yes | @ansh-ui/react/form | 1.0 KB | Checked |
Size is what a React app adds by importing only that component, tree-shaken and minified, with React itself excluded. Components share engine code, so sizes do not add up. Every component renders the same markup on the server and the first client frame.
Both follow the ARIA listbox and combobox patterns. The combobox filters by subsequence, so “nds” finds “New Datasource”.
import { Select, Combobox } from '@ansh-ui/react'
<Select options={countries} label="Country" clearable placeholder="Choose…" />
<Combobox
multiple
options={countries}
label="Owners"
value={owners}
onChange={setOwners}
/>| Component | React | Vue | Import from | Size (min + gzip) | axe-core |
|---|---|---|---|---|---|
Select | Yes | Yes | @ansh-ui/react/form | 4.6 KB | Checked |
Combobox | Yes | Yes | @ansh-ui/react/form | 5.2 KB | Checked |
Size is what a React app adds by importing only that component, tree-shaken and minified, with React itself excluded. Components share engine code, so sizes do not add up. Every component renders the same markup on the server and the first client frame.
All three wrap a real input, so form submission, autofill and :checked styling work without extra code.
import { Checkbox, Switch, RadioGroup, Radio, ChoiceCard } from '@ansh-ui/react'
<Checkbox label="Remember me" description="Stay signed in for 30 days" />
<Checkbox label="Select all" indeterminate />
<Switch label="Email notifications" defaultChecked />
<RadioGroup label="Plan" defaultValue="pro" orientation="horizontal">
<ChoiceCard value="free" label="Free" description="Up to 3 projects" />
<ChoiceCard value="pro" label="Pro" description="Unlimited projects" />
</RadioGroup>| Component | React | Vue | Import from | Size (min + gzip) | axe-core |
|---|---|---|---|---|---|
Checkbox | Yes | Yes | @ansh-ui/react/form | 1.2 KB | Checked |
Switch | Yes | Yes | @ansh-ui/react/form | 1.0 KB | Checked |
RadioGroup | Yes | Yes | @ansh-ui/react/form | 0.7 KB | Checked |
Radio | Yes | Yes | @ansh-ui/react/form | 0.7 KB | Checked |
ChoiceCard | Yes | Yes | @ansh-ui/react/form | 0.8 KB | Not covered |
Size is what a React app adds by importing only that component, tree-shaken and minified, with React itself excluded. Components share engine code, so sizes do not add up. Every component renders the same markup on the server and the first client frame.
The slider commits on release so an expensive handler doesn't fire on every pointer move. NumberInput is text + inputMode, not type=number — no scroll-wheel accidents.
import { Slider, RangeSlider, NumberInput } from '@ansh-ui/react'
<Slider label="Volume" defaultValue={40} showValue />
<RangeSlider
label="Price"
defaultValue={[200, 800]}
max={1000}
minDistance={50}
formatValue={(v) => `£${v}`}
showValue="always"
/>
<NumberInput defaultValue={12} min={0} max={99} unit="seats" />| Component | React | Vue | Import from | Size (min + gzip) | axe-core |
|---|---|---|---|---|---|
Slider | Yes | Yes | @ansh-ui/react/form | 1.8 KB | Checked |
RangeSlider | Yes | Yes | @ansh-ui/react/form | 1.6 KB | Not covered |
NumberInput | Yes | Yes | @ansh-ui/react/form | 1.5 KB | Not covered |
Size is what a React app adds by importing only that component, tree-shaken and minified, with React itself excluded. Components share engine code, so sizes do not add up. Every component renders the same markup on the server and the first client frame.
The PIN input advertises one-time-code on its first cell, so iOS and Android offer the SMS code. Pasting a full code spreads across the cells.
import { PinInput, TagsInput, Rating } from '@ansh-ui/react'
<PinInput length={6} onComplete={verify} />
<TagsInput value={tags} onChange={setTags} label="Topics" />
<Rating defaultValue={4} allowHalf />| Component | React | Vue | Import from | Size (min + gzip) | axe-core |
|---|---|---|---|---|---|
PinInput | Yes | Yes | @ansh-ui/react/form | 1.4 KB | Not covered |
TagsInput | Yes | Yes | @ansh-ui/react/form | 1.7 KB | Not covered |
Rating | Yes | Yes | @ansh-ui/react/form | 1.2 KB | Not covered |
Size is what a React app adds by importing only that component, tree-shaken and minified, with React itself excluded. Components share engine code, so sizes do not add up. Every component renders the same markup on the server and the first client frame.
The text field is editable — typing a date you already know beats clicking through a calendar. The calendar is there for “some Thursday next month”.
import { DatePicker, DateRangePicker, Calendar } from '@ansh-ui/react'
<DatePicker value={date} onChange={setDate} />
<DateRangePicker months={2} />
<Calendar showWeekNumbers />| Component | React | Vue | Import from | Size (min + gzip) | axe-core |
|---|---|---|---|---|---|
DatePicker | Yes | Yes | @ansh-ui/react/form | 5.7 KB | Not covered |
DateRangePicker | Yes | Yes | @ansh-ui/react/form | 5.0 KB | Not covered |
Calendar | Yes | Yes | @ansh-ui/react/form | 2.7 KB | Checked |
Size is what a React app adds by importing only that component, tree-shaken and minified, with React itself excluded. Components share engine code, so sizes do not add up. Every component renders the same markup on the server and the first client frame.
Built on the engine's colour system, so it parses oklch() as happily as hex — and reports live contrast, which is what stops inaccessible brand colours getting picked.
import { ColorPicker } from '@ansh-ui/react'
<ColorPicker
value={colour}
onChange={setColour}
alpha
contrastAgainst="#ffffff"
presets={['#0275f4', '#9f0550', '#0f9d58', '#f4b400']}
/>| Component | React | Vue | Import from | Size (min + gzip) | axe-core |
|---|---|---|---|---|---|
ColorPicker | Yes | Yes | @ansh-ui/react/form | 8.3 KB | Not covered |
Size is what a React app adds by importing only that component, tree-shaken and minified, with React itself excluded. Components share engine code, so sizes do not add up. Every component renders the same markup on the server and the first client frame.
A real <input type=file> under the drop surface, because drag-and-drop is unusable with a keyboard, a screen reader, or on a phone.
import { Dropzone } from '@ansh-ui/react'
<Dropzone
multiple
accept="image/*,.pdf"
maxSize={5 * 1024 * 1024}
hint="PNG, JPG or PDF up to 5 MB"
/>| Component | React | Vue | Import from | Size (min + gzip) | axe-core |
|---|---|---|---|---|---|
Dropzone | Yes | Yes | @ansh-ui/react/form | 2.0 KB | Not covered |
Size is what a React app adds by importing only that component, tree-shaken and minified, with React itself excluded. Components share engine code, so sizes do not add up. Every component renders the same markup on the server and the first client frame.
A real <fieldset> and <legend>, which is what makes a screen reader announce the group name before each control inside it.
import { Fieldset, Field, Input } from '@ansh-ui/react'
<Fieldset legend="Billing address" description="Where the invoice is sent.">
<Field label="Street"><Input /></Field>
<Field label="City"><Input /></Field>
</Fieldset>| Component | React | Vue | Import from | Size (min + gzip) | axe-core |
|---|---|---|---|---|---|
Fieldset | Yes | Yes | @ansh-ui/react/form | 0.4 KB | Not covered |
Field | Yes | Yes | @ansh-ui/react/form | 0.7 KB | Checked |
Input | Yes | Yes | @ansh-ui/react/form | 1.2 KB | Checked |
Size is what a React app adds by importing only that component, tree-shaken and minified, with React itself excluded. Components share engine code, so sizes do not add up. Every component renders the same markup on the server and the first client frame.
Portalled, focus-trapped, dismissable, and stacked properly — Escape closes the innermost layer, not all of them.
AlertDialog focuses Cancel, not Confirm, and ignores scrim clicks. Hitting Enter reflexively should not delete an account.
import { Dialog, AlertDialog, Button } from '@ansh-ui/react'
<Button onClick={() => setOpen(true)}>Edit profile</Button>
<Dialog
open={open}
onOpenChange={setOpen}
title="Edit profile"
description="Changes are saved immediately."
footer={<Button variant="shimmer">Save</Button>}
>
<Field label="Display name"><Input /></Field>
</Dialog>| Component | React | Vue | Import from | Size (min + gzip) | axe-core |
|---|---|---|---|---|---|
Dialog | Yes | Yes | @ansh-ui/react/overlay | 2.6 KB | Checked |
AlertDialog | Yes | Yes | @ansh-ui/react/overlay | 2.8 KB | Not covered |
Button | Yes | Yes | @ansh-ui/react | 12.9 KB | Not covered |
Size is what a React app adds by importing only that component, tree-shaken and minified, with React itself excluded. Components share engine code, so sizes do not add up. Every component renders the same markup on the server and the first client frame.
Same accessibility contract as a dialog, positioned at an edge. Supports a non-modal mode where the page behind stays usable.
import { Drawer, Button } from '@ansh-ui/react'
<Drawer
open={open}
onOpenChange={setOpen}
side="right"
title="Filters"
footer={<Button variant="shimmer" size="sm">Apply</Button>}
>
<Field label="Status"><Select options={statuses} /></Field>
</Drawer>| Component | React | Vue | Import from | Size (min + gzip) | axe-core |
|---|---|---|---|---|---|
Drawer | Yes | Yes | @ansh-ui/react/overlay | 2.7 KB | Not covered |
Button | Yes | Yes | @ansh-ui/react | 12.9 KB | Not covered |
Size is what a React app adds by importing only that component, tree-shaken and minified, with React itself excluded. Components share engine code, so sizes do not add up. Every component renders the same markup on the server and the first client frame.
Tooltips describe rather than name, open on focus as well as hover, and dismiss on Escape — all three required by WCAG 1.4.13.
import { Popover, PopoverTrigger, PopoverContent, Tooltip, HoverCard } from '@ansh-ui/react'
<Popover placement="bottom">
<PopoverTrigger asChild><Button variant="ghost">Share</Button></PopoverTrigger>
<PopoverContent label="Share" arrow>…</PopoverContent>
</Popover>
<Tooltip content="Saves and publishes">
<Button>Publish</Button>
</Tooltip>| Component | React | Vue | Import from | Size (min + gzip) | axe-core |
|---|---|---|---|---|---|
Popover | Yes | Yes | @ansh-ui/react/overlay | 0.6 KB | Not covered |
PopoverTrigger | Yes | Yes | @ansh-ui/react/overlay | 0.8 KB | Not covered |
PopoverContent | Yes | Yes | @ansh-ui/react/overlay | 3.5 KB | Not covered |
Tooltip | Yes | Yes | @ansh-ui/react/overlay | 3.1 KB | Not covered |
HoverCard | Yes | Yes | @ansh-ui/react/overlay | 2.6 KB | Not covered |
Size is what a React app adds by importing only that component, tree-shaken and minified, with React itself excluded. Components share engine code, so sizes do not add up. Every component renders the same markup on the server and the first client frame.
A real <table> with scope and aria-sort. Sorting cycles asc → desc → none, so the data's natural order stays reachable.
Sorting, selection and pagination. Nulls sort last in both directions — an empty cell is absent, not smallest.
| Status | ||||
|---|---|---|---|---|
INV-043 | Zenith Labs | £12,400.00 | overdue | |
INV-045 | Umbrella Ltd | £7,600.00 | due | |
INV-041 | Northwind Traders | £4,820.00 | paid |
import { DataTable, Badge } from '@ansh-ui/react'
<DataTable
data={invoices}
columns={columns}
getRowId={(row) => row.id}
caption="Invoices for June 2026"
selectable
selected={selected}
onSelectedChange={setSelected}
pageSize={3}
stickyHeader
/>| Component | React | Vue | Import from | Size (min + gzip) | axe-core |
|---|---|---|---|---|---|
DataTable | Yes | Yes | @ansh-ui/react/data | 3.0 KB | Checked |
Badge | Yes | Yes | @ansh-ui/react/data | 0.4 KB | Checked |
Size is what a React app adds by importing only that component, tree-shaken and minified, with React itself excluded. Components share engine code, so sizes do not add up. Every component renders the same markup on the server and the first client frame.
The delta's direction is shown by an arrow, a sign and a colour. Three redundant signals, because this is the number people scan fastest.
import { Stat, Grid } from '@ansh-ui/react'
<Grid columns="auto" minColumnWidth="14rem">
<Stat label="Revenue" value="£48,200" delta={12.4} hint="vs last month" />
<Stat label="Churn" value="1.2%" delta={-8} invertDelta />
<Stat label="Open tickets" value="34" delta={0} />
</Grid>| Component | React | Vue | Import from | Size (min + gzip) | axe-core |
|---|---|---|---|---|---|
Stat | Yes | Yes | @ansh-ui/react/data | 0.6 KB | Not covered |
Grid | Yes | Yes | @ansh-ui/react/layout | 0.5 KB | Not covered |
Size is what a React app adds by importing only that component, tree-shaken and minified, with React itself excluded. Components share engine code, so sizes do not add up. Every component renders the same markup on the server and the first client frame.
Avatar fallback colours are generated in OKLCH at fixed lightness, so a row of them looks even — and the text colour is chosen for contrast against whatever came out.
import { Badge, Avatar, AvatarGroup, Kbd } from '@ansh-ui/react'
<Badge tone="success" dot>Paid</Badge>
<Badge tone="danger" variant="solid">Overdue</Badge>
<AvatarGroup max={3}>
<Avatar name="Ada Lovelace" status="online" />
<Avatar name="Grace Hopper" />
<Avatar name="Alan Turing" />
<Avatar name="Katherine Johnson" />
</AvatarGroup>
<Kbd>⌘+K</Kbd>| Component | React | Vue | Import from | Size (min + gzip) | axe-core |
|---|---|---|---|---|---|
Badge | Yes | Yes | @ansh-ui/react/data | 0.4 KB | Checked |
Avatar | Yes | Yes | @ansh-ui/react/data | 4.5 KB | Checked |
AvatarGroup | Yes | Yes | @ansh-ui/react/data | 0.5 KB | Not covered |
Kbd | Yes | Yes | @ansh-ui/react/data | 0.4 KB | Not covered |
Size is what a React app adds by importing only that component, tree-shaken and minified, with React itself excluded. Components share engine code, so sizes do not add up. Every component renders the same markup on the server and the first client frame.
Progress is work advancing; a meter is a static measurement. Announcing disk usage as progress tells a screen-reader user something is loading.
import { Progress, CircularProgress, Meter } from '@ansh-ui/react'
<Progress value={68} label="Upload" showLabel />
<Progress label="Syncing" /> {/* indeterminate */}
<CircularProgress value={72} label="Score">72%</CircularProgress>
<Meter value={82} label="Disk usage" low={20} high={90} inverted />| Component | React | Vue | Import from | Size (min + gzip) | axe-core |
|---|---|---|---|---|---|
Progress | Yes | Yes | @ansh-ui/react/data | 0.6 KB | Checked |
CircularProgress | Yes | Yes | @ansh-ui/react/data | 0.8 KB | Not covered |
Meter | Yes | Yes | @ansh-ui/react/data | 0.6 KB | Not covered |
Size is what a React app adds by importing only that component, tree-shaken and minified, with React itself excluded. Components share engine code, so sizes do not add up. Every component renders the same markup on the server and the first client frame.
An empty state always offers the next step. “No results” alone leaves the user guessing whether the filter is wrong or the data hasn't loaded.
ada@northwind.example
import { Timeline, DescriptionList, EmptyState } from '@ansh-ui/react'
<Timeline items={[
{ id: '1', title: 'Invoice created', timestamp: '2 Jun', tone: 'accent' },
{ id: '2', title: 'Sent to client', timestamp: '2 Jun' },
{ id: '3', title: 'Paid', timestamp: '9 Jun', tone: 'success' },
]} />
<DescriptionList items={[
{ term: 'Client', description: 'Northwind Traders' },
{ term: 'Reference', description: 'PO-88213' },
]} />| Component | React | Vue | Import from | Size (min + gzip) | axe-core |
|---|---|---|---|---|---|
Timeline | Yes | Yes | @ansh-ui/react/data | 0.5 KB | Not covered |
DescriptionList | Yes | Yes | @ansh-ui/react/data | 0.4 KB | Not covered |
EmptyState | Yes | Yes | @ansh-ui/react/data | 0.4 KB | Not covered |
Size is what a React app adds by importing only that component, tree-shaken and minified, with React itself excluded. Components share engine code, so sizes do not add up. Every component renders the same markup on the server and the first client frame.
No invoices yet
Create your first invoice and it will appear here.
import { EmptyState, Pagination, Button } from '@ansh-ui/react'
<EmptyState
title="No invoices yet"
description="Create your first invoice and it will appear here."
action={<Button variant="shimmer">New invoice</Button>}
/>
<Pagination page={page} pageCount={12} onPageChange={setPage} total={240} pageSize={20} />| Component | React | Vue | Import from | Size (min + gzip) | axe-core |
|---|---|---|---|---|---|
EmptyState | Yes | Yes | @ansh-ui/react/data | 0.4 KB | Not covered |
Pagination | Yes | Yes | @ansh-ui/react/data | 1.0 KB | Checked |
Button | Yes | Yes | @ansh-ui/react | 12.9 KB | Not covered |
Size is what a React app adds by importing only that component, tree-shaken and minified, with React itself excluded. Components share engine code, so sizes do not add up. Every component renders the same markup on the server and the first client frame.
No syntax highlighter. Shipping a tokeniser and a theme in a component library costs every consumer, including the ones who never render code.
pnpm add @ansh-ui/react @ansh-ui/tokensimport { CodeBlock } from '@ansh-ui/react'
<CodeBlock filename="install.sh" language="bash" code="pnpm add @ansh-ui/react" />| Component | React | Vue | Import from | Size (min + gzip) | axe-core |
|---|---|---|---|---|---|
CodeBlock | Yes | Yes | @ansh-ui/react/data | 0.7 KB | Not covered |
Size is what a React app adds by importing only that component, tree-shaken and minified, with React itself excluded. Components share engine code, so sizes do not add up. Every component renders the same markup on the server and the first client frame.
Off-screen slides are inert, so their controls stay out of the tab order. aria-live is polite when idle and off while auto-playing.
import { Carousel } from '@ansh-ui/react'
<Carousel
label="Featured work"
items={[<SlideA />, <SlideB />, <SlideC />]}
autoPlay
interval={6}
/>| Component | React | Vue | Import from | Size (min + gzip) | axe-core |
|---|---|---|---|---|---|
Carousel | Yes | Yes | @ansh-ui/react | 1.9 KB | Not covered |
Size is what a React app adds by importing only that component, tree-shaken and minified, with React itself excluded. Components share engine code, so sizes do not add up. Every component renders the same markup on the server and the first client frame.
Panels unmount when inactive. Hiding them keeps timers running and media buffering, and a hidden required field blocks submission with no visible error.
Your name, avatar and public bio.
import { Tabs } from '@ansh-ui/react'
<Tabs
label="Account sections"
variant="underline"
items={[
{ id: 'profile', label: 'Profile', content: <Profile /> },
{ id: 'billing', label: 'Billing', badge: 2, content: <Billing /> },
{ id: 'api', label: 'API keys', content: <Keys /> },
]}
/>| Component | React | Vue | Import from | Size (min + gzip) | axe-core |
|---|---|---|---|---|---|
Tabs | Yes | Yes | @ansh-ui/react/navigation | 1.3 KB | Checked |
Size is what a React app adds by importing only that component, tree-shaken and minified, with React itself excluded. Components share engine code, so sizes do not add up. Every component renders the same markup on the server and the first client frame.
Each step's state is announced in text, not drawn with a tick and a colour. Colour alone conveys nothing to a screen reader.
import { Breadcrumbs, Stepper } from '@ansh-ui/react'
<Breadcrumbs items={[
{ label: 'Home', href: '/' },
{ label: 'Clients', href: '/clients' },
{ label: 'Northwind Traders' },
]} />
<Stepper current={step} onStepChange={setStep} steps={[
{ id: '1', label: 'Details', clickable: true },
{ id: '2', label: 'Payment', clickable: true },
{ id: '3', label: 'Review' },
]} />| Component | React | Vue | Import from | Size (min + gzip) | axe-core |
|---|---|---|---|---|---|
Breadcrumbs | Yes | Yes | @ansh-ui/react/navigation | 0.9 KB | Not covered |
Stepper | Yes | Yes | @ansh-ui/react/navigation | 0.9 KB | Not covered |
Size is what a React app adds by importing only that component, tree-shaken and minified, with React itself excluded. Components share engine code, so sizes do not add up. Every component renders the same markup on the server and the first client frame.
Animated with grid-template-rows 0fr → 1fr, which transitions to intrinsic height with no JavaScript and no magic max-height.
You are billed monthly. Changing plan prorates against the current period.
Yes — access continues to the end of the paid period.
import { Accordion, Collapsible } from '@ansh-ui/react'
<Accordion
variant="separated"
items={[
{ id: 'a', title: 'How does billing work?', content: <p>…</p> },
{ id: 'b', title: 'Can I cancel?', content: <p>…</p> },
]}
/>| Component | React | Vue | Import from | Size (min + gzip) | axe-core |
|---|---|---|---|---|---|
Accordion | Yes | Yes | @ansh-ui/react/navigation | 1.4 KB | Checked |
Collapsible | Yes | Yes | @ansh-ui/react/navigation | 1.0 KB | Not covered |
Size is what a React app adds by importing only that component, tree-shaken and minified, with React itself excluded. Components share engine code, so sizes do not add up. Every component renders the same markup on the server and the first client frame.
The role follows the tone: assertive for errors, polite for information. Using alert for everything makes a screen reader interrupt itself to say a draft was saved.
Payment failed
Trial ends in 3 days
import { Alert, Callout, Banner } from '@ansh-ui/react'
<Alert tone="danger" title="Payment failed">
Your card was declined. Update it to keep your subscription active.
</Alert>
<Alert tone="success" dismissible>Invoice sent to ada@northwind.example</Alert>
<Callout label="Note">Rates include VAT where applicable.</Callout>| Component | React | Vue | Import from | Size (min + gzip) | axe-core |
|---|---|---|---|---|---|
Alert | Yes | Yes | @ansh-ui/react | 1.1 KB | Checked |
Callout | Yes | Yes | @ansh-ui/react | 0.8 KB | Not covered |
Banner | Yes | Yes | @ansh-ui/react | 1.1 KB | Not covered |
Size is what a React app adds by importing only that component, tree-shaken and minified, with React itself excluded. Components share engine code, so sizes do not add up. Every component renders the same markup on the server and the first client frame.
Spacing props take token keys, not pixels, so a layout is guaranteed to sit on the scale.
import { Stack, HStack, Grid, Divider, Container } from '@ansh-ui/react'
<Grid columns="auto" minColumnWidth="12rem" gap={4}>
<Card />
<Card />
</Grid>
<Divider label="or continue with" />
<HStack gap={3} align="center">…</HStack>| Component | React | Vue | Import from | Size (min + gzip) | axe-core |
|---|---|---|---|---|---|
Stack | Yes | Yes | @ansh-ui/react/layout | 0.5 KB | Not covered |
HStack | Yes | Yes | @ansh-ui/react/layout | 0.6 KB | Not covered |
Grid | Yes | Yes | @ansh-ui/react/layout | 0.5 KB | Not covered |
Divider | Yes | Yes | @ansh-ui/react/layout | 0.4 KB | Not covered |
Container | Yes | Yes | @ansh-ui/react/layout | 0.5 KB | Not covered |
Size is what a React app adds by importing only that component, tree-shaken and minified, with React itself excluded. Components share engine code, so sizes do not add up. Every component renders the same markup on the server and the first client frame.
A real role=separator with aria-valuenow. Arrow keys move it in 2% steps — WAI-ARIA calls this a window splitter, and it is a documented pattern rather than an invention.
import { Resizable } from '@ansh-ui/react'
<Resizable defaultSize={35} minSize={20} maxSize={70} label="Resize sidebar">
<FileTree />
<Editor />
</Resizable>| Component | React | Vue | Import from | Size (min + gzip) | axe-core |
|---|---|---|---|---|---|
Resizable | Yes | Yes | @ansh-ui/react/layout | 1.3 KB | Not covered |
Size is what a React app adds by importing only that component, tree-shaken and minified, with React itself excluded. Components share engine code, so sizes do not add up. Every component renders the same markup on the server and the first client frame.
The native scrollbar is kept and only styled — a JavaScript scrollbar breaks keyboard scrolling, momentum, and the OS “always show scrollbars” setting.
import { ScrollArea, AspectRatio } from '@ansh-ui/react'
<ScrollArea maxHeight="10rem">…</ScrollArea>
<AspectRatio ratio={16 / 9}>
<img src="/cover.jpg" alt="" />
</AspectRatio>| Component | React | Vue | Import from | Size (min + gzip) | axe-core |
|---|---|---|---|---|---|
ScrollArea | Yes | Yes | @ansh-ui/react/layout | 0.4 KB | Not covered |
AspectRatio | Yes | Yes | @ansh-ui/react/layout | 0.3 KB | Not covered |
Size is what a React app adds by importing only that component, tree-shaken and minified, with React itself excluded. Components share engine code, so sizes do not add up. Every component renders the same markup on the server and the first client frame.
A deliberately small subset — transforms and opacity, springs, scroll triggers. Layout animation and shared elements need machinery an order of magnitude larger; use a dedicated library for those.
Values are written straight to style from the ticker's write phase. React never re-renders during an animation.
import { Motion } from '@ansh-ui/react'
<Motion
initial={{ opacity: 0, y: 24 }}
animate={{ opacity: 1, y: 0 }}
whileHover={{ scale: 1.04, y: -4 }}
transition={{ spring: true }}
whileInView
>
<Card />
</Motion>| Component | React | Vue | Import from | Size (min + gzip) | axe-core |
|---|---|---|---|---|---|
Motion | Yes | Yes | @ansh-ui/react/motion | 14.0 KB | Not covered |
Size is what a React app adds by importing only that component, tree-shaken and minified, with React itself excluded. Components share engine code, so sizes do not add up. Every component renders the same markup on the server and the first client frame.
UI kits
Complete layouts assembled from the catalogue above. Each is a starting point to copy wholesale, not a screenshot — everything here is the same components you would import.
AppShell, Sidebar, Stat, Progress and Timeline. The shell is a grid, so the sidebar and header stick without the content needing compensating margins.
import { AppShell, Sidebar, Stat, Grid, Progress } from '@ansh-ui/react'
<AppShell
header={<Topbar />}
sidebar={<Sidebar sections={sections} activeId={active} onNavigate={(i) => setActive(i.id)} />}
>
<Grid columns="auto" minColumnWidth="13rem" gap={4}>
<Stat label="Revenue" value="£48,200" delta={12.4} hint="vs last month" />
<Stat label="Churn" value="1.2%" delta={-8} invertDelta />
</Grid>
</AppShell>| Component | React | Vue | Import from | Size (min + gzip) | axe-core |
|---|---|---|---|---|---|
AppShell | Yes | Yes | @ansh-ui/react/navigation | 0.4 KB | Not covered |
Sidebar | Yes | Yes | @ansh-ui/react/navigation | 1.6 KB | Not covered |
Stat | Yes | Yes | @ansh-ui/react/data | 0.6 KB | Not covered |
Grid | Yes | Yes | @ansh-ui/react/layout | 0.5 KB | Not covered |
Progress | Yes | Yes | @ansh-ui/react/data | 0.6 KB | Checked |
Size is what a React app adds by importing only that component, tree-shaken and minified, with React itself excluded. Components share engine code, so sizes do not add up. Every component renders the same markup on the server and the first client frame.
Row actions live in a DropdownMenu, and the row click handler ignores clicks that started on a control. Selecting a checkbox must not open a detail view.
| Stage | ||||
|---|---|---|---|---|
Ada Lovelace Ada LovelaceNorthwind | won | £48,000 | ||
Alan Turing Alan TuringBletchley | qualified | £12,500 | ||
Katherine Johnson Katherine JohnsonOrbital | lead | £3,200 | ||
Hedy Lamarr Hedy LamarrSpectrum | lost | £8,800 | ||
Grace Hopper Grace HopperCompiler Co | qualified | £22,000 |
import { DataTable, Badge, Avatar, DropdownMenu } from '@ansh-ui/react'
<DataTable
data={contacts}
columns={columns}
getRowId={(row) => row.id}
caption="Pipeline contacts"
selectable
selected={selected}
onSelectedChange={setSelected}
onRowClick={openContact}
stickyHeader
/>| Component | React | Vue | Import from | Size (min + gzip) | axe-core |
|---|---|---|---|---|---|
DataTable | Yes | Yes | @ansh-ui/react/data | 3.0 KB | Checked |
Badge | Yes | Yes | @ansh-ui/react/data | 0.4 KB | Checked |
Avatar | Yes | Yes | @ansh-ui/react/data | 4.5 KB | Checked |
DropdownMenu | Yes | Yes | @ansh-ui/react/overlay | 5.0 KB | Checked |
Size is what a React app adds by importing only that component, tree-shaken and minified, with React itself excluded. Components share engine code, so sizes do not add up. Every component renders the same markup on the server and the first client frame.
Horizontal fields at a settings density, with switches for anything that applies immediately. If a change needs a Save button, the control should be a checkbox instead.
Used for sign-in and invoices.
import { Tabs, Field, Input, Switch, Divider, DescriptionList } from '@ansh-ui/react'
<Tabs label="Settings" variant="pill" items={[
{ id: 'profile', label: 'Profile', content: <ProfileForm /> },
{ id: 'notifications', label: 'Notifications', content: <NotificationForm /> },
]} />| Component | React | Vue | Import from | Size (min + gzip) | axe-core |
|---|---|---|---|---|---|
Tabs | Yes | Yes | @ansh-ui/react/navigation | 1.3 KB | Checked |
Field | Yes | Yes | @ansh-ui/react/form | 0.7 KB | Checked |
Input | Yes | Yes | @ansh-ui/react/form | 1.2 KB | Checked |
Switch | Yes | Yes | @ansh-ui/react/form | 1.0 KB | Checked |
Divider | Yes | Yes | @ansh-ui/react/layout | 0.4 KB | Not covered |
DescriptionList | Yes | Yes | @ansh-ui/react/data | 0.4 KB | Not covered |
Size is what a React app adds by importing only that component, tree-shaken and minified, with React itself excluded. Components share engine code, so sizes do not add up. Every component renders the same markup on the server and the first client frame.
A labelled Divider for the “or continue with” rule, and a real form layout. The error is a role=alert so it is announced the moment it appears after a failed submit.
Sign in to your Ledger workspace.
Incorrect password. Try again.
import { Field, Input, Button, Divider, Checkbox } from '@ansh-ui/react'
<form>
<Field label="Email" required><Input type="email" /></Field>
<Field label="Password" required error={error}><Input type="password" /></Field>
<Checkbox label="Remember me" />
<Button variant="shimmer" type="submit">Sign in</Button>
<Divider label="or continue with" />
</form>| Component | React | Vue | Import from | Size (min + gzip) | axe-core |
|---|---|---|---|---|---|
Field | Yes | Yes | @ansh-ui/react/form | 0.7 KB | Checked |
Input | Yes | Yes | @ansh-ui/react/form | 1.2 KB | Checked |
Button | Yes | Yes | @ansh-ui/react | 12.9 KB | Not covered |
Divider | Yes | Yes | @ansh-ui/react/layout | 0.4 KB | Not covered |
Checkbox | Yes | Yes | @ansh-ui/react/form | 1.2 KB | Checked |
Size is what a React app adds by importing only that component, tree-shaken and minified, with React itself excluded. Components share engine code, so sizes do not add up. Every component renders the same markup on the server and the first client frame.
Canvas effects
Each renders through the same shared ticker and adaptive frame budget. Every seed here is pinned, so this page produces byte-identical output on every load.
Colour
Scales are generated in OKLCH, so every step has matching visual weight. Gradients interpolate in OKLab, so opposing hues don’t cancel to grey on the way across.
The srgb strip passes through a dead grey at its midpoint because the channels cancel. The other two keep their chroma the whole way across.
Layout
Speed is pixels per second, not a duration — adding a logo doesn’t change how fast the strip scrolls. The track is duplicated to cover the container, and clones are aria-hidden so a screen reader reads the list once.