Component packs › Folio › Sticky Flags
Tug a translucent flag and the page glides to the clause it marks while a highlighter in the flag colour sweeps across it.
Sticky Flags 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: spring page scroll, highlighter sweep, peel on hover.
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 | FoTab[] | Tabs: label on the flag; title and rows become the passage it marks (rows join into one paragraph). | |
index | number | ||
label | string | ||
width | number | 400 | Width in px. Default 400. |
dark | boolean | ||
onChange | (index: number) => void | ||
autoplay | number | false | Showcase mode: moves to the next flag every N ms while visible. |
readonly index: numberselect(index: number): voiddestroy(): voidimport StickyFlags from './StickyFlags';
<StickyFlags />The Vue, HTML, Next.js, Tailwind and Motion versions take the same options.
Good for: Tabs.