Motion, refined.

A framework-agnostic animation engine with premium components for React, Next.js, Vue and Nuxt. One scheduler, perceptual colour, and springs solved in closed form.

Browse effects

Components

Copy, paste, ship

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.

Buttons

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>
Specs1 component · React and Vue
ComponentReactVueImport fromSize (min + gzip)axe-core
ButtonYesYes@ansh-ui/react12.9 KBNot 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.

Spotlight & glow cards

The spotlight writes two CSS custom properties on pointer move — no React re-render.

Fast by default

A highlight follows your pointer across the surface.

Animated border

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>
Specs2 components · React and Vue
ComponentReactVueImport fromSize (min + gzip)axe-core
SpotlightCardYesYes@ansh-ui/react0.7 KBNot covered
GlowCardYesYes@ansh-ui/react0.4 KBNot 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.

Bento grid

Tiles span columns and rows; collapses to one column below 768px.

Analytics

Spans two columns.

Realtime

Edge

Observability

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>
Specs3 components · React and Vue
ComponentReactVueImport fromSize (min + gzip)axe-core
BentoGridYesYes@ansh-ui/react0.3 KBNot covered
BentoItemYesYes@ansh-ui/react0.3 KBNot covered
TiltCard3DYesYes@ansh-ui/react3.7 KBNot 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.

3D tilt

CSS-only sibling of TiltCard. Reach for TiltCard when the motion should feel weighted.

Hover me

Rotates toward the pointer, eases back on leave.

Subtler

Same component, smaller maximum rotation.

import { TiltCard3D } from '@ansh-ui/react'

<TiltCard3D max={14}>
  <h3>Hover me</h3>
</TiltCard3D>
Specs1 component · React and Vue
ComponentReactVueImport fromSize (min + gzip)axe-core
TiltCard3DYesYes@ansh-ui/react3.7 KBNot 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.

Dock

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}
/>
Specs1 component · React and Vue
ComponentReactVueImport fromSize (min + gzip)axe-core
DockYesYes@ansh-ui/react3.9 KBNot 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.

Command palette

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' },
  ]}
/>
Specs1 component · React and Vue
ComponentReactVueImport fromSize (min + gzip)axe-core
CommandPaletteYesYes@ansh-ui/react/overlay1.6 KBNot 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.

Text

Each keeps the complete string in the DOM for assistive technology, whatever is visible.

Built to ship faster, sleep better, stay sane
Premium by default
99420+ downloads
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="+" />
Specs3 components · React and Vue
ComponentReactVueImport fromSize (min + gzip)axe-core
TypewriterYesYes@ansh-ui/react4.0 KBNot covered
ShinyTextYesYes@ansh-ui/react0.3 KBNot covered
NumberTickerYesYes@ansh-ui/react4.5 KBNot 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.

Rotating & scrambling text

The rotator sizes itself to the longest word up front, so the sentence around it never reflows.

Built for engineers

Resolves out of noise on scroll.

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>
Specs2 components · React and Vue
ComponentReactVueImport fromSize (min + gzip)axe-core
TextRotateYesYes@ansh-ui/react0.8 KBNot covered
ScrambleTextYesYes@ansh-ui/react6.4 KBNot 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.

Before / after

Clips the top layer rather than resizing it, so the content is uncovered instead of squashed. Arrow keys work.

Original
Graded
import { BeforeAfter } from '@ansh-ui/react'

<BeforeAfter
  defaultValue={55}
  before={<img src="/after.png" alt="" />}
  after={<img src="/before.png" alt="" />}
/>
Specs1 component · React and Vue
ComponentReactVueImport fromSize (min + gzip)axe-core
BeforeAfterYesYes@ansh-ui/react1.2 KBNot 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.

Device mockups

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>
Specs1 component · React and Vue
ComponentReactVueImport fromSize (min + gzip)axe-core
DeviceMockupYesYes@ansh-ui/react0.5 KBNot 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.

Card stack

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} />
Specs1 component · React and Vue
ComponentReactVueImport fromSize (min + gzip)axe-core
CardStackYesYes@ansh-ui/react1.3 KBNot 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.

Loaders & toasts

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' })
Specs3 components · React and Vue
ComponentReactVueImport fromSize (min + gzip)axe-core
SpinnerYesYes@ansh-ui/react0.4 KBNot covered
LoadingDotsYesYes@ansh-ui/react0.4 KBNot covered
SkeletonYesYes@ansh-ui/react0.4 KBNot 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.

Pricing table

The featured plan is marked by elevation, a badge and a filled CTA — never colour alone.

Free
$0/month

Everything in this repository, MIT licensed.

  • All 20 effects
  • All 8 behaviours
  • React & Vue
  • Community support
Enterprise
Custom

For teams shipping at scale.

  • Everything in Pro
  • WebGPU backend
  • Design review
  • SLA
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' } },
]} />
Specs1 component · React and Vue
ComponentReactVueImport fromSize (min + gzip)axe-core
PricingTableYesYes@ansh-ui/react13.4 KBNot 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.

FAQ accordion

Animates to intrinsic height via grid-template-rows 0fr→1fr — no JS measurement.

Yes. The package ships a "use client" directive on its entry points, so components work inside server components without your own client boundary.

The kernel owns it rather than each component. Every effect declares a strategy — static, slow, pause or none — because "disable everything" is wrong for most of them. A slowly shifting gradient is not what makes people ill; a full-viewport parallax is.

Importing the whole engine is 69 KB gzipped, but the subpath exports mean you rarely do — the colour engine alone is 16.8 KB, the React bindings 6.3 KB.
import { FAQAccordion } from '@ansh-ui/react'

<FAQAccordion
  defaultOpen={0}
  items={[
    { question: 'Does it work with Next.js?', answer: 'Yes…' },
  ]}
/>
Specs1 component · React and Vue
ComponentReactVueImport fromSize (min + gzip)axe-core
FAQAccordionYesYes@ansh-ui/react0.8 KBNot 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

Everything, with the code

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.

Forms

Every control works controlled or uncontrolled, and wires its own label, description and error through the Field wrapper.

Field, Input, Textarea

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.

9 / 280
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>
Specs3 components · React and Vue
ComponentReactVueImport fromSize (min + gzip)axe-core
FieldYesYes@ansh-ui/react/form0.7 KBChecked
InputYesYes@ansh-ui/react/form1.2 KBChecked
TextareaYesYes@ansh-ui/react/form1.0 KBChecked

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.

Select & Combobox

Both follow the ARIA listbox and combobox patterns. The combobox filters by subsequence, so “nds” finds “New Datasource”.

United Kingdom
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}
/>
Specs2 components · React and Vue
ComponentReactVueImport fromSize (min + gzip)axe-core
SelectYesYes@ansh-ui/react/form4.6 KBChecked
ComboboxYesYes@ansh-ui/react/form5.2 KBChecked

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.

Checkbox, Radio, Switch

All three wrap a real input, so form submission, autofill and :checked styling work without extra code.

Stay signed in for 30 days
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>
Specs5 components · React and Vue
ComponentReactVueImport fromSize (min + gzip)axe-core
CheckboxYesYes@ansh-ui/react/form1.2 KBChecked
SwitchYesYes@ansh-ui/react/form1.0 KBChecked
RadioGroupYesYes@ansh-ui/react/form0.7 KBChecked
RadioYesYes@ansh-ui/react/form0.7 KBChecked
ChoiceCardYesYes@ansh-ui/react/form0.8 KBNot 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.

Slider & NumberInput

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.

seats
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" />
Specs3 components · React and Vue
ComponentReactVueImport fromSize (min + gzip)axe-core
SliderYesYes@ansh-ui/react/form1.8 KBChecked
RangeSliderYesYes@ansh-ui/react/form1.6 KBNot covered
NumberInputYesYes@ansh-ui/react/form1.5 KBNot 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.

PIN, tags & rating

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.

2 of 6 digits entered
  • design
  • frontend
import { PinInput, TagsInput, Rating } from '@ansh-ui/react'

<PinInput length={6} onComplete={verify} />
<TagsInput value={tags} onChange={setTags} label="Topics" />
<Rating defaultValue={4} allowHalf />
Specs3 components · React and Vue
ComponentReactVueImport fromSize (min + gzip)axe-core
PinInputYesYes@ansh-ui/react/form1.4 KBNot covered
TagsInputYesYes@ansh-ui/react/form1.7 KBNot covered
RatingYesYes@ansh-ui/react/form1.2 KBNot 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.

Dates

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 />
Specs3 components · React and Vue
ComponentReactVueImport fromSize (min + gzip)axe-core
DatePickerYesYes@ansh-ui/react/form5.7 KBNot covered
DateRangePickerYesYes@ansh-ui/react/form5.0 KBNot covered
CalendarYesYes@ansh-ui/react/form2.7 KBChecked

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.

Colour picker

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']}
/>
Specs1 component · React and Vue
ComponentReactVueImport fromSize (min + gzip)axe-core
ColorPickerYesYes@ansh-ui/react/form8.3 KBNot 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.

File upload

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"
/>
Specs1 component · React and Vue
ComponentReactVueImport fromSize (min + gzip)axe-core
DropzoneYesYes@ansh-ui/react/form2.0 KBNot 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.

Grouped fields

A real <fieldset> and <legend>, which is what makes a screen reader announce the group name before each control inside it.

Billing address

Where the invoice is sent.

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>
Specs3 components · React and Vue
ComponentReactVueImport fromSize (min + gzip)axe-core
FieldsetYesYes@ansh-ui/react/form0.4 KBNot covered
FieldYesYes@ansh-ui/react/form0.7 KBChecked
InputYesYes@ansh-ui/react/form1.2 KBChecked

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.

Overlays

Portalled, focus-trapped, dismissable, and stacked properly — Escape closes the innermost layer, not all of them.

Dialog & alert dialog

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>
Specs3 components · React and Vue
ComponentReactVueImport fromSize (min + gzip)axe-core
DialogYesYes@ansh-ui/react/overlay2.6 KBChecked
AlertDialogYesYes@ansh-ui/react/overlay2.8 KBNot covered
ButtonYesYes@ansh-ui/react12.9 KBNot 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.

Drawer

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>
Specs2 components · React and Vue
ComponentReactVueImport fromSize (min + gzip)axe-core
DrawerYesYes@ansh-ui/react/overlay2.7 KBNot covered
ButtonYesYes@ansh-ui/react12.9 KBNot 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.

Popover, tooltip & hover card

Tooltips describe rather than name, open on focus as well as hover, and dismiss on Escape — all three required by WCAG 1.4.13.

@ada
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>
Specs5 components · React and Vue
ComponentReactVueImport fromSize (min + gzip)axe-core
PopoverYesYes@ansh-ui/react/overlay0.6 KBNot covered
PopoverTriggerYesYes@ansh-ui/react/overlay0.8 KBNot covered
PopoverContentYesYes@ansh-ui/react/overlay3.5 KBNot covered
TooltipYesYes@ansh-ui/react/overlay3.1 KBNot covered
HoverCardYesYes@ansh-ui/react/overlay2.6 KBNot 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.

Menus

Data-driven, with submenus, checkbox and radio items. Follows the ARIA menu pattern, where DOM focus moves to the item — that's what makes arrow-key submenu traversal work.

Right-click here
import { DropdownMenu, ContextMenu } from '@ansh-ui/react'

<DropdownMenu
  label="Row actions"
  items={[
    { label: 'Edit', shortcut: '⌘E', onSelect: edit },
    { type: 'checkbox', label: 'Grid view', checked: grid, onChange: setGrid },
    { type: 'submenu', label: 'Move to', items: [{ label: 'Archive' }] },
    { type: 'separator' },
    { label: 'Delete', danger: true, onSelect: remove },
  ]}
>
  <Button variant="ghost">Actions</Button>
</DropdownMenu>
Specs2 components · React and Vue
ComponentReactVueImport fromSize (min + gzip)axe-core
DropdownMenuYesYes@ansh-ui/react/overlay5.0 KBChecked
ContextMenuYesYes@ansh-ui/react/overlay4.8 KBNot 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.

Data

A real <table> with scope and aria-sort. Sorting cycles asc → desc → none, so the data's natural order stays reachable.

DataTable

Sorting, selection and pagination. Nulls sort last in both directions — an empty cell is absent, not smallest.

Invoices for June 2026, sorted by amount descending
Status
INV-043Zenith Labs£12,400.00overdue2026-05-18
INV-045Umbrella Ltd£7,600.00due2026-06-28
INV-041Northwind Traders£4,820.00paid2026-06-02
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
/>
Specs2 components · React and Vue
ComponentReactVueImport fromSize (min + gzip)axe-core
DataTableYesYes@ansh-ui/react/data3.0 KBChecked
BadgeYesYes@ansh-ui/react/data0.4 KBChecked

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.

Stats

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.

Revenue
£48,200
+12.4%vs last month
Churn
1.2%
-8%vs last month
Open tickets
34
0%
Avg. response
2h 14m
-19%
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>
Specs2 components · React and Vue
ComponentReactVueImport fromSize (min + gzip)axe-core
StatYesYes@ansh-ui/react/data0.6 KBNot covered
GridYesYes@ansh-ui/react/layout0.5 KBNot 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.

Badges, avatars & keys

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.

PaidDue soonOverdueDraftArchived
Ada LovelaceonlineGrace HopperAlan Turingand 1 more
⌘KShiftEnter
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>
Specs4 components · React and Vue
ComponentReactVueImport fromSize (min + gzip)axe-core
BadgeYesYes@ansh-ui/react/data0.4 KBChecked
AvatarYesYes@ansh-ui/react/data4.5 KBChecked
AvatarGroupYesYes@ansh-ui/react/data0.5 KBNot covered
KbdYesYes@ansh-ui/react/data0.4 KBNot 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 & meters

Progress is work advancing; a meter is a static measurement. Announcing disk usage as progress tells a screen-reader user something is loading.

Upload68%
72%
Disk usage82%
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 />
Specs3 components · React and Vue
ComponentReactVueImport fromSize (min + gzip)axe-core
ProgressYesYes@ansh-ui/react/data0.6 KBChecked
CircularProgressYesYes@ansh-ui/react/data0.8 KBNot covered
MeterYesYes@ansh-ui/react/data0.6 KBNot 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.

Timeline, details & empty state

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.

  1. Invoice created2 Jun
  2. Sent to client2 Jun

    ada@northwind.example

  3. Payment received9 Jun
Client
Northwind Traders
Reference
PO-88213
Terms
Net 30
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' },
]} />
Specs3 components · React and Vue
ComponentReactVueImport fromSize (min + gzip)axe-core
TimelineYesYes@ansh-ui/react/data0.5 KBNot covered
DescriptionListYesYes@ansh-ui/react/data0.4 KBNot covered
EmptyStateYesYes@ansh-ui/react/data0.4 KBNot 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.

Empty state & pagination

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} />
Specs3 components · React and Vue
ComponentReactVueImport fromSize (min + gzip)axe-core
EmptyStateYesYes@ansh-ui/react/data0.4 KBNot covered
PaginationYesYes@ansh-ui/react/data1.0 KBChecked
ButtonYesYes@ansh-ui/react12.9 KBNot 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.

Code block

No syntax highlighter. Shipping a tokeniser and a theme in a component library costs every consumer, including the ones who never render code.

install.sh
pnpm add @ansh-ui/react @ansh-ui/tokens
import { CodeBlock } from '@ansh-ui/react'

<CodeBlock filename="install.sh" language="bash" code="pnpm add @ansh-ui/react" />
Specs1 component · React and Vue
ComponentReactVueImport fromSize (min + gzip)axe-core
CodeBlockYesYes@ansh-ui/react/data0.7 KBNot 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.

Navigation

Composite widgets with a single tab stop each. Ten tabs that are each a tab stop is technically operable and practically hostile.

Tabs

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 /> },
  ]}
/>
Specs1 component · React and Vue
ComponentReactVueImport fromSize (min + gzip)axe-core
TabsYesYes@ansh-ui/react/navigation1.3 KBChecked

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.

Breadcrumbs & stepper

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' },
]} />
Specs2 components · React and Vue
ComponentReactVueImport fromSize (min + gzip)axe-core
BreadcrumbsYesYes@ansh-ui/react/navigation0.9 KBNot covered
StepperYesYes@ansh-ui/react/navigation0.9 KBNot 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.

Accordion & collapsible

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> },
  ]}
/>
Specs2 components · React and Vue
ComponentReactVueImport fromSize (min + gzip)axe-core
AccordionYesYes@ansh-ui/react/navigation1.4 KBChecked
CollapsibleYesYes@ansh-ui/react/navigation1.0 KBNot 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.

Feedback

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.

Alerts & callouts

Invoice sent to ada@northwind.example

Scheduled maintenance

We will be read-only on Sunday 03:00–04:00 UTC.
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>
Specs3 components · React and Vue
ComponentReactVueImport fromSize (min + gzip)axe-core
AlertYesYes@ansh-ui/react1.1 KBChecked
CalloutYesYes@ansh-ui/react0.8 KBNot covered
BannerYesYes@ansh-ui/react1.1 KBNot 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.

Layout

Spacing props take token keys, not pixels, so a layout is guaranteed to sit on the scale.

Stack, Grid, Divider

Alpha
Beta
Gamma
Delta
or continue with
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>
Specs5 components · React and Vue
ComponentReactVueImport fromSize (min + gzip)axe-core
StackYesYes@ansh-ui/react/layout0.5 KBNot covered
HStackYesYes@ansh-ui/react/layout0.6 KBNot covered
GridYesYes@ansh-ui/react/layout0.5 KBNot covered
DividerYesYes@ansh-ui/react/layout0.4 KBNot covered
ContainerYesYes@ansh-ui/react/layout0.5 KBNot 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.

Resizable panes

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.

Files
Editor
import { Resizable } from '@ansh-ui/react'

<Resizable defaultSize={35} minSize={20} maxSize={70} label="Resize sidebar">
  <FileTree />
  <Editor />
</Resizable>
Specs1 component · React and Vue
ComponentReactVueImport fromSize (min + gzip)axe-core
ResizableYesYes@ansh-ui/react/layout1.3 KBNot 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.

ScrollArea & AspectRatio

The native scrollbar is kept and only styled — a JavaScript scrollbar breaks keyboard scrolling, momentum, and the OS “always show scrollbars” setting.

Row 1
Row 2
Row 3
Row 4
Row 5
Row 6
Row 7
Row 8
Row 9
Row 10
Row 11
Row 12
16 : 9
import { ScrollArea, AspectRatio } from '@ansh-ui/react'

<ScrollArea maxHeight="10rem">…</ScrollArea>

<AspectRatio ratio={16 / 9}>
  <img src="/cover.jpg" alt="" />
</AspectRatio>
Specs2 components · React and Vue
ComponentReactVueImport fromSize (min + gzip)axe-core
ScrollAreaYesYes@ansh-ui/react/layout0.4 KBNot covered
AspectRatioYesYes@ansh-ui/react/layout0.3 KBNot 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.

Motion

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.

Motion

Values are written straight to style from the ticker's write phase. React never re-renders during an animation.

Springs
Scroll
Hover
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>
Specs1 component · React and Vue
ComponentReactVueImport fromSize (min + gzip)axe-core
MotionYesYes@ansh-ui/react/motion14.0 KBNot 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

Screens, not just parts

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.

Dashboard

AppShell, Sidebar, Stat, Progress and Timeline. The shell is a grid, so the sidebar and header stick without the content needing compensating margins.

Skip to main content
LedgerPro
Ada Lovelaceonline
Revenue
£48,200
+12.4%vs last month
Outstanding
£12,940
-4.1%
Clients
38
+5%

Quarterly target

Q3 target68%
Seats used82 / 100

Recent activity

  1. INV-045 sent2h
  2. Payment received5h
  3. INV-043 overdue1d
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>
Specs5 components · React and Vue
ComponentReactVueImport fromSize (min + gzip)axe-core
AppShellYesYes@ansh-ui/react/navigation0.4 KBNot covered
SidebarYesYes@ansh-ui/react/navigation1.6 KBNot covered
StatYesYes@ansh-ui/react/data0.6 KBNot covered
GridYesYes@ansh-ui/react/layout0.5 KBNot covered
ProgressYesYes@ansh-ui/react/data0.6 KBChecked

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.

CRM — contact list

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.

Pipeline contacts
StageOwner
Ada Lovelace
Ada LovelaceNorthwind
won£48,000Grace Hopper
Alan Turing
Alan TuringBletchley
qualified£12,500Ada Lovelace
Katherine Johnson
Katherine JohnsonOrbital
lead£3,200Grace Hopper
Hedy Lamarr
Hedy LamarrSpectrum
lost£8,800Alan Turing
Grace Hopper
Grace HopperCompiler Co
qualified£22,000Ada Lovelace
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
/>
Specs4 components · React and Vue
ComponentReactVueImport fromSize (min + gzip)axe-core
DataTableYesYes@ansh-ui/react/data3.0 KBChecked
BadgeYesYes@ansh-ui/react/data0.4 KBChecked
AvatarYesYes@ansh-ui/react/data4.5 KBChecked
DropdownMenuYesYes@ansh-ui/react/overlay5.0 KBChecked

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.

Settings

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.

Plan
Pro — £29/mo
Member since
March 2024
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 /> },
]} />
Specs6 components · React and Vue
ComponentReactVueImport fromSize (min + gzip)axe-core
TabsYesYes@ansh-ui/react/navigation1.3 KBChecked
FieldYesYes@ansh-ui/react/form0.7 KBChecked
InputYesYes@ansh-ui/react/form1.2 KBChecked
SwitchYesYes@ansh-ui/react/form1.0 KBChecked
DividerYesYes@ansh-ui/react/layout0.4 KBNot covered
DescriptionListYesYes@ansh-ui/react/data0.4 KBNot 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.

Sign in

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.

Welcome back

Sign in to your Ledger workspace.

Forgot password?
or continue with
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>
Specs5 components · React and Vue
ComponentReactVueImport fromSize (min + gzip)axe-core
FieldYesYes@ansh-ui/react/form0.7 KBChecked
InputYesYes@ansh-ui/react/form1.2 KBChecked
ButtonYesYes@ansh-ui/react12.9 KBNot covered
DividerYesYes@ansh-ui/react/layout0.4 KBNot covered
CheckboxYesYes@ansh-ui/react/form1.2 KBChecked

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

20 effects, one engine

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

Perceptual by default

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.

50
100
200
300
400
500
600
700
800
900
950
oklab
oklch
srgb

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.

Interaction

Behaviours that own the element

Spring-driven, pointer-aware, and disabled under prefers-reduced-motion. Hover the cards; press the ripple.

TiltCard

Perspective is baked into the transform as its first function, so no wrapper element is needed. The glare sweeps opposite the pointer, the way a real specular highlight does.

Ripple

The radius reaches the furthest corner, so wide elements fill completely. Fires on Enter and Space too — try focusing this card and pressing either.

Reverse tilt

The same behaviour with reverse, which inverts the rotation so the card leans away from the pointer rather than toward it.

Layout

Seamless, at a real velocity

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.

Vercel
Linear
Stripe
Framer
Raycast
Supabase
Resend
49 fps · p95 1.9ms · q 47% · 110 subs