UI3232
47 Accordion48 Alerts49 Avatar50 Badge51 Breadcrumb52 Button53 Button Group54 Calendar55 Card56 Checkbox57 Collapsible58 Combobox59 Data Table60 Date Picker61 Dialog62 Dropdown Menu63 Form64 Input65 Input Mask66 Input OTP67 Pagination68 Popover69 Radio Group70 Select71 Sheet72 Slider73 Sonner74 Switch75 Table76 Tabs77 Textarea78 Tooltip
Blocks1010
202 Marketing hero with product shot203 Marketing feature bento204 Marketing pricing205 Marketing testimonials wall206 Marketing CTA and footer212 Dashboard shell213 Sign in214 Settings page215 Inbox216 AI chat app
Charts2929
01 Animated radial chart99 Live line101 Route trace142 Candlestick chart143 Forecast fan144 State timeline145 Spark table146 Distribution plot147 Violin plot148 Beeswarm149 Slope chart150 Dumbbell chart151 Waterfall chart152 Treemap153 Streamgraph154 Scatter brush155 Correlation matrix156 Sankey flow157 Drawdown chart158 Depth chart159 Calibration plot160 Stacked area chart161 Grouped bar chart162 Donut chart163 Funnel chart164 Cohort retention165 Calendar heatmap166 Bullet chart240 Order book
Interactive66
02 Message dock03 Voice powered orb07 Draggable rope93 Timer113 Elastic frame117 Scene states
AI2424
13 AI voice input103 Agent trace104 Handoff beam105 Lattice orb220 Streaming message221 Reasoning disclosure222 Stream status223 Message branch224 Response feedback225 Prompt composer226 Model selector227 Attachment chips228 Suggested prompts229 Context meter230 Tool call card231 Approval gate232 Diff review233 Artifact panel234 Inline AI edit235 Citation chips236 Retrieval inspector237 Memory viewer238 Response compare239 Cost meter
Galleries66
04 Ruler carousel10 Portfolio gallery32 Hover image gallery106 Torn edge reveal107 Mosaic settle115 Project index
Heroes22
05 Video scroll hero116 Aperture dive
Shaders66
80 Aurora veil88 Kinetic dots90 Silt91 Intaglio92 Phosphor114 Sumi
Tables1420
06 Financial table43 Contacts table44 Leads table45 Resizable table46 Server management89 Periodic table100 Flap ledger120 Sortable table121 Pricing table122 Invoice table123 Leaderboard124 Changelog table125 API reference table126 File tree table127 Timetable128 Shortcuts table129 Spec sheet130 Transactions table131 Spreadsheet grid132 Permissions matrix
Cards2626
11 Video upload card16 Animated card options17 Animated card status list18 Audio upload card19 Bonuses incentives card20 Coach scheduling21 Dashboard card modal22 Event countdown card23 Hover detail card24 News cards25 Onboarding stages26 Prediction market card27 Product reveal card28 Profile hover card29 Project cards102 Solar sky panel182 Plan usage card183 Payment method card184 Integration card185 Metric card186 Shipment card187 Now playing card188 Deployment card189 Team invite card190 Streak card191 Link preview card
Badges11
14 Animated status badge
Controls44
31 Gradient selector95 Adaptive precision slider96 Click wheel97 Velocity ink
Navigation22
94 Radial command ring108 Minimap scrollbar
Utilities33
98 Spring tuner110 Stroke-morph icon119 Glow rules
HUD88
09 HUD frame15 Animated download34 Glitchy 40435 Overlay 236 HUD button37 HUD graph38 HUD status40 Warning graphic
Feedback11
109 Morph loader
Text1212
33 Reveal text111 Scatter rewind112 Plane type133 Glyph morph134 Weight wave135 Decode text136 Magnetic letters137 Slice shift138 Stroke draw type139 Ink bleed text140 Liquid text141 Chromatic text
Components•Treemap
Components•Treemap

Treemap

Squarified tiles, sized by value and coloured by change: accent for gains and blue for losses, both stronger with size of move and fading to the background at zero. Click a sector or press Enter to zoom in, and every tile glides to its new place; Escape and the breadcrumbs zoom back out. Labels only appear where they fit, and a tile too small for its number keeps a minus bar when it fell.

Dependencies

Motion

Copy below cli

npx shadcn add @bjork-ui/treemap

How to use

import { Treemap } from "@/components/bjork-ui/charts/treemap";<Treemap  data={{    id: "root",    label: "Portfolio",    children: [      { id: "tech", label: "Technology", children: [{ id: "nw", label: "Northwind", value: 4_200_000, change: 0.018 }] },    ],  }}/>
PreviousWaterfall chartNextStreamgraph
$30.4M
−3.0%+3.0%
Portfolio by sector
ItemGroupValueChange
Northwind SystemsTechnology$1.3M−1.5%
Helix ComputeTechnology$3.8M+1.0%
Quanta CloudTechnology$1.7M+1.7%
Arc DevicesTechnology$1.8M−1.9%
Lumen SoftwareTechnology$5.8M+3.0%
Vector AITechnology$464.7K+1.8%
Meridian BioHealthcare$998K+0.2%
Cobalt HealthHealthcare$1.1M−2.3%
Pulse LabsHealthcare$1.2M−0.3%
Atlas PharmaHealthcare$1.5M+0.8%
Harbor BankFinancials$354.7K−0.1%
Keystone PayFinancials$551.5K−2.7%
Summit CapitalFinancials$1.2M+0.7%
LedgerlineFinancials$245.5K+1.0%
Solace PowerEnergy$814.2K+1.3%
Tidewater OilEnergy$1.6M−1.1%
Crest RenewablesEnergy$1.2M+0.5%
Juniper GoodsConsumer$701.4K+2.0%
Orchard FoodsConsumer$257.9K+2.3%
Kite ApparelConsumer$333.7K−1.6%
Basil HomeConsumer$1M−2.6%
Forge WorksIndustrials$890.9K+3.1%
RailheadIndustrials$699.4K+1.0%
Granite BuildIndustrials$665.7K+1.6%
Options
Colour