Component packs › Windsock › Flag Tabs
Each tab is printed on a cloth flag: the selected one flies out straight and ripples, the rest hang slack and stir in the gusts.
Flag Tabs is a tabs from Windsock, a component pack with 6 wind controls: Controls moved by the wind: flags that fly, a windsock that fills, a vane that swings round. Price: $2 for the whole pack.
Built with: printed cloth, wind moves to the tab, lit folds.
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[] | ["Day", "Week", "Month", "Year"] | Tab labels (short words fit best). Default ["Day", "Week", "Month", "Year"]. |
value | number | ||
label | string | ||
disabled | boolean | ||
dark | boolean | ||
onChange | (index: number, label: string) => void | ||
autoplay | number | false | Showcase mode: moves to another tab every N ms while visible. |
readonly value: numbersetValue(i: number, silent?: boolean): voiddestroy(): voidimport FlagTabs from './FlagTabs';
<FlagTabs />The Vue, HTML, Next.js, Tailwind and Motion versions take the same options.
Good for: Notifications and toasts.