Queue

Approvals5 waiting
Maya OkaforRefund$240
No dependencies
Code format

Install with shadcn

Needs a free account token. Get a token

npx shadcn@latest add @movin/card-queue

About this component

An approvals pile in a soft tray. Approve throws the top request off to the right with a green edge, Decline to the left with a red one, and the next request rises into its place. When the pile is empty it says so, then the next batch arrives.

Triggers

  • Click
  • State change
  • Card
  • Gradient
  • Spring
  • Keyframe

Techniques

  • CSS variables
  • CSS transition
  • Keyframes
  • Gradient
  • Filter
  • mix-blend-mode
  • Pseudo elements
  • State machine

Difficulty

Intermediate

Accessibility

Keyboard and screen readers

Decline and Approve are native buttons with visible focus rings, disabled while the pile is empty. Only the top request is exposed to assistive technology (the cards under it and the one flying away are aria-hidden) and the waiting count is an aria-live region.

Reduced motion

Cards swap places at once without the throw.

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

More cards

See all
Agent run
Queued
RelayGet code

All systems normal99.98%

  • Up
  • Up
  • Up
  • Up
  • Up
  • Up
  • Up
  • Up
  • Up
  • Slow
  • Up
  • Up
  • Up
  • Up
  • Up
  • Up
  • Up
  • Up
  • Up
  • Up
  • Up
  • Up
  • Slow
  • Up
  • Up
  • Up
  • Up
  • Up
  • Up
  • Up
SkyGet code
Focus
Length
SprintGet code

Activity

659 commits in 16 weeks

TilesGet code