Component packs › Dune › Raked Tabs

Raked Tabs

A stone marks the active tab in a raked sand garden; the grooves part around it in rings and flow back as it slides.

Raked Tabs is a tabs from Dune, a component pack with 6 sand controls: Controls made of real sand: every grain falls, tumbles and piles up. Price: $2 for the whole pack.

Built with: live raked grooves, spring stone, wake behind it.

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.

Raked Tabs props

PropTypeDefaultDescription
tabsstring[]
activenumber
widthnumber380Width in px. Default 380.
onChange(index: number) => void
autoplaynumber | falseShowcase mode: moves to the next tab every N ms.

Methods on the ref

Use it in React

import RakedTabs from './RakedTabs';

<RakedTabs />

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

More in Dune

Good for: Toggle switches, Loaders and progress, Physics UI components.