Library viewer

One engine. Four framework surfaces.

Same colours, same spring physics, same seeded noise — switch tabs and watch the pixels stay identical while the code underneath changes. Vue's tab is a real, independently mounted @ansh-ui/vue application instance, not a screenshot.

React — live

Hooks-based. Tree-shakeable via seven subpath entries. React 18 and 19.

Motion, refined.

import '@ansh-ui/tokens/ansh.css'
import '@ansh-ui/react/styles.css'
import { AuroraBackground, AnimatedText, MagneticButton } from '@ansh-ui/react'

export function Hero() {
  return (
    <AuroraBackground colors={['#0275f4', '#5b3df5', '#9f0550']} seed={7}>
      <h1><AnimatedText by="chars" from="center">Motion, refined.</AnimatedText></h1>
      <MagneticButton strength={14}>Get started</MagneticButton>
    </AuroraBackground>
  )
}
Specs3 components · React and Vue
ComponentReactVueImport fromSize (min + gzip)axe-core
AuroraBackgroundYesYes@ansh-ui/react20.3 KBNot covered
AnimatedTextYesYes@ansh-ui/react/motion7.6 KBNot covered
MagneticButtonYesYes@ansh-ui/react/motion6.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.

React — a form control

Not just canvas effects: the application-layer components (forms, overlays, data, navigation) are the same story.

We'll never share it.

import { Field, Input } from '@ansh-ui/react'

<Field label="Work email" description="We'll never share it.">
  <Input type="email" placeholder="you@example.com" />
</Field>
Specs2 components · React and Vue
ComponentReactVueImport fromSize (min + gzip)axe-core
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.

Every component in this viewer ships from the exact same source that powers the showcase page — nothing here is a special demo build.

43 fps · p95 1.4ms · q 100% · 7 subs