Component packs › Marble › Marble Tabs
The marble rolls along a groove of dimples to the chosen tab, checked a little by each one, overshoots and settles in.
Marble Tabs is a tabs from Marble, a component pack with 6 marble controls: Controls made of glass marbles that roll, knock and settle like the real thing. Price: $2 for the whole pack.
Built with: dimple wells, tilt pull, rolling spin.
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.
| Prop | Type | Default | Description |
|---|---|---|---|
tabs | string[] | ||
active | number | ||
width | number | ||
onChange | (i: number) => void | ||
autoplay | number | false |
select(i: number): voiddestroy(): voidimport MarbleTabs from './MarbleTabs';
<MarbleTabs />The Vue, HTML, Next.js, Tailwind and Motion versions take the same options.
Good for: Toggle switches, Loaders and progress, Physics UI components.