Elastic Tabs Demo
loomui/elastic-tabs-demoFreeExample
Four categories with a pill that stretches between them.
Install it
npx shadcn@latest add https://loomui.design/r/elastic-tabs-demo.jsonSource
1"use client"23import * as React from "react"45import { ElasticTabs } from "@/registry/loomui/elastic-tabs"67const ITEMS = [8 { value: "text", label: "Text" },9 { value: "backgrounds", label: "Backgrounds" },10 { value: "interaction", label: "Interaction" },11 { value: "sections", label: "Sections" },12]1314const COPY: Record<string, string> = {15 text: "Headlines that arrive with something to say.",16 backgrounds: "Surfaces that move without asking to be looked at.",17 interaction: "Things that answer back when you touch them.",18 sections: "Whole blocks, not just the pieces they are cut from.",19}2021export default function ElasticTabsDemo() {22 const [value, setValue] = React.useState("text")2324 return (25 <div className="flex flex-col items-center gap-5">26 <ElasticTabs items={ITEMS} value={value} onValueChange={setValue} />27 <p className="text-muted-foreground text-sm">{COPY[value]}</p>28 </div>29 )30}
What it pulls in
Other registry items
Files it writes
More from loomui
All 91 items| Component | Registry | Kind | Access | Installs | Command |
|---|---|---|---|---|---|
| Aurora Backdrop Demoaurora-backdrop-demo | loomui | Examples | Free | no deps | |
| Bento Grid Demobento-grid-demo | loomui | Examples | Free | no deps | |
| Card Stack Democard-stack-demo | loomui | Examples | Free | no deps | |
| Compare Slider Democompare-slider-demo | loomui | Examples | Free | no deps | |
| Confetti Button Democonfetti-button-demo | loomui | Examples | Free | no deps | |
| Count Up Democount-up-demo | loomui | Examples | Free | no deps | |
| Credit Card Democredit-card-demo | loomui | Examples | Free | no deps | |
| Drawer Demodrawer-demo | loomui | Examples | Free | no deps |
