Component packs › Folio › Card Wheel

Card Wheel

A rotary card file: drag or flick the wheel, the cards fan around the axle and it settles on the nearest guide card.

Card Wheel is a tabs from Folio, a component pack with 8 tab components: Eight tab components, each one a real piece of stationery that moves the way it does on a desk. Price: $2 for the whole pack.

Built with: drag and flick with momentum, card fan around an axle, snap with overshoot.

Code: React and Next.js (TypeScript), Vue 3, plain HTML/CSS/JS, Tailwind CSS v4 and Motion (motion.dev). No npm packages needed. Keyboard accessible, with a reduced-motion version, in dark and light.

Card Wheel props

PropTypeDefaultDescription
tabsFoTab[]Tabs: label on the guide card's tab, title and rows ("Left\tRight") on its face.
indexnumber
labelstring
widthnumber400Width in px. Default 400.
darkboolean
onChange(index: number) => void
autoplaynumber | falseShowcase mode: turns to the next guide card every N ms while visible.

Methods on the ref

Use it in React

import CardWheel from './CardWheel';

<CardWheel />

The Vue, HTML, Next.js, Tailwind and Motion versions take the same options.

More in Folio

Good for: Tabs.