Composer

Assistant

Enter to send
No dependencies
Code format

Install with shadcn

Needs a free account token. Get a token

npx shadcn@latest add @movin/card-composer

About this component

An AI prompt card: a field whose rim is a slow turning wash of colour. Pick a suggestion or type, send, and the rim spins up while three lines shimmer in. The answer then lands word by word and the rim settles. Stop cancels.

Triggers

  • Click
  • Focus
  • State change
  • Card
  • Gradient
  • Border
  • Glow
  • Ambient

Techniques

  • @property
  • Conic gradient
  • Keyframes
  • CSS transition
  • Filter
  • Text animation
  • Stagger
  • State machine

Difficulty

Intermediate

Accessibility

Keyboard and screen readers

A native textarea named "Ask the assistant", native buttons for the three suggestions and for send, whose accessible name switches between Send and Stop; the answer is an aria-live region. The chips leave the tab order while an answer is on screen.

Reduced motion

The rim, skeleton and caret stop moving and the answer appears whole.

Use it in anything you build, commercial and client work included. Licence

More cards

See all
HaldenMember

Ada Moreau

No. 004 271
FoilGet code

Edge network

38 regions

FRA → SIN

24ms

GlobeGet code

Integrations

0 of 7 connected

HubGet code
StandupTue 09:30

Launch week

1 of 3 done
MinutesGet code