All components

Icon Button

Square and circular icon-only buttons sharing the Button recipe across all variants and control sizes.

Variants

solid
subtle
surface
outline
ghost
plain

Sizes

xs
sm
md
lg
xl

Square vs. rounded

Use shape="rounded" for circular toolbar or floating actions while keeping exact square hit targets.

Install

Source

components/ui/ui-sdk/icon-button.tsx

Examples

Installable blocks built with Icon Button — real use cases, delivered as source you own.

AI Chat Conversation

Transcript of alternating turns carrying mixed rich content inline (prose, code blocks, collapsible tool-call output) beside a resizable artifact panel that collapses to a full-screen dialog on narrow screens.

AI Chat Landing

Zero-state AI entry surface centered on a single composer with a collapsible attachment drawer, @ mention and / command typeahead, mode menus, and category-driven suggestion cards.

Basic Login

Minimal, zero-chrome centered credential sign-in form resting directly on the canvas with inline validation, password visibility toggle, inline forgot-password feedback, remember-me persistence, and toast confirmation.

Canvas Editor

Layered artboard workspace with document tabs, a folded desktop command menu, resizable layer and library rail, zoomable poster canvas, and a live inspector for position, typography, HSV color, and CSS image filters.

Card Grid

Searchable, categorized pattern and starter-kit library with category toggles, saved bookmarks, a sort menu, grouped responsive card sections, and an interactive detail preview dialog.

Checkout Form

Two-column storefront checkout with express wallets, shipping and billing address fields, selectable delivery cards, auto-formatted card entry with network detection, promo code discounts, gift notes, inline validation, and a sticky collapsible order summary.

Checkout Wizard

Four-step two-column checkout flow with live cart quantities and promo codes, country-aware shipping validation, delivery method selection, payment review, sticky order summary, and local order confirmation.

Classic Gallery

Centered editorial gallery pairing category filter tabs, a responsive 3:2 architectural photography grid, and a keyboard-navigable lightbox dialog with camera metadata.

Collapsible Table

Heterogeneous infrastructure spend and usage ledger organized into three collapsible schema-specific table cards (Compute & Inference Clusters, Storage & Data Lakes, Third-Party Integrations & APIs) with a shared global time-range selector, cross-section search, expand/collapse-all controls, per-section column sorting, and expandable rows revealing a TanStack Charts run-rate trajectory.

Comparison Table

Transposed side-by-side vector database evaluation matrix with a sticky criteria label column, collapsible grouped rows, interactive column swapping and adding/removing, baseline pinning with relative deltas, best-in-row highlights, differences-only filtering, score bars, 30-day uptime telemetry, and a live recommendation footer.

Documentation Catalog

Developer documentation hub featuring a searchable hero banner, CLI starter panel, quick-start cards, filterable categorized guide tracks with schematic previews, interactive article preview dialog with copyable code blocks, and live status and changelog links.

Documentation Design

Design-system component reference article featuring breadcrumb navigation, stability metadata badges, sticky scroll-spy table of contents, an interactive playground with live controls and synchronized JSX output, paired Do / Don't visual specimens, filterable API props table, copyable usage recipes, keyboard & ARIA contracts, and helpfulness feedback footer.

Documentation Technical

Sequential technical quickstart guide featuring breadcrumb navigation, an AI setup prompt card, prerequisites and troubleshooting callouts, synced package-manager and runtime code switchers, checkable step completion progress, onward reading cards, and a responsive sticky table-of-contents rail.

File Explorer

Cloud workspace file manager with a collapsible folder tree, breadcrumb trail, live search, list / grid / Miller-column view switcher, row actions menu, and a synchronized metadata inspector.

Filterable Table

Progressive filtering workbench for fleet deployments with saved views and custom view creation, structured field:value filter tokens alongside free-text search, active filter pills, column visibility and row grouping options, sortable columns, and a resizable detail inspector that collapses into a bottom drawer on narrow containers.

Dialog Wizard

Three-step scheduled backup policy wizard inside a modal Dialog over a live Arbor Cloud workspace. Features a pinned title and compact stepper header, scrollable per-step validation for target cluster, region, cadence, retention, replication, and KMS encryption, a pinned Back/Continue/Create footer, and live host table updates with toast confirmation.

Funnel & Cohort Dashboard

Developer activation and cohort retention dashboard featuring KPI sparklines, a horizontal conversion funnel with step-to-step drop-off metrics, interactive W0–W8 retention curves and stage trends, and a clickable weekly cohort retention heatmap.

Grouped Table

Release backlog and change-request table bundling rows into collapsible status, priority, or team groups with per-group counts, expand/collapse-all, query search and release/priority filters, inline stage and priority pickers, a resizable Splitter inspector with readiness checklist and activity timeline, and narrow-screen drawer handoff.

IDE Workspace

Multi-pane code IDE workspace with a filterable file tree, open and closable editor tabs, line-numbered syntax-highlighted code view, resizable Terminal / Problems / Output workbench, properties and history inspector, and live status bar.

Inbox Table

Two-pane resizable partner support and security triage queue pairing an adaptive container-query inbox table—with folder scope controls, search, bulk selection ActionBar, unread indicators, star toggles, and hover quick-actions—with a collapsible message thread reader and live reply / internal-note composer.

Incident Console

On-call incident response workspace with status-grouped rows, an interactive affected-services health strip, severity and status controls, a resizable detail inspector with live timeline note composer, runbook checklist, responder roster, and bottom-drawer handoff on narrow screens.

Kanban Board

Interactive four-lane sprint board with pointer drag-and-drop, keyboard and menu column movement, search and priority/assignee filters, quick-add task dialog, task detail drawer, and toast feedback.

Messaging Shell

Three-pane engineering team messaging shell with searchable channels and direct messages, unread badges, presence indicators, grouped message streams with a live composer, and a resizable thread & channel-info panel that adapts into slide-over drawers on narrow containers.

Mixed Gallery

Asymmetric mixed-aspect bento gallery pairing panoramic wide plates, tall portrait specimens, and square studies with a segmented discipline filter and keyboard-navigable lightbox dialog.

Order Detail

Commerce order detail page with breadcrumb navigation, fulfillment and payment status badges, itemized line-item table with product photo thumbnails, invoice breakdown, live shipment tracking timeline, customer and shipping sidebar cards with collapsible risk analysis, cancel-order confirmation dialog, and toast feedback.

Page Editor

Collaborative document editor with a resizable pages tree and live block outline, formatting toolbar, page-width switcher, inline-editable structured blocks (headings, paragraphs, callouts, checklists, code snippets), collaborator presence, review comments, and share controls.

Product Detail

Two-column storefront product detail layout pairing a multi-angle interactive photo gallery with a sticky buy box, live anodized finish swatches, color-temperature edition controls, quantity stepper, collapsible specifications accordion, and filterable customer reviews.

Searchable Table

Full-page searchable subscriptions and invoices ledger with billing-cycle scope control, status and plan filters, column sorting, multi-row selection with a floating ActionBar, per-row menus, pagination, empty state, and live filtered totals.

Settings Dialog

Two-pane desktop preferences modal with a categorized navigation rail, keyboard-navigable live settings search, responsive container-query collapse, accent swatch and scale controls, connected app toggles, shortcut bindings, quota progress meters, and a docked dirty-state save bar.

Shell Nav

Application shell pairing a top navigation bar (workspace switcher, command search dialog, notifications popover, account menu) with a collapsible left sidebar, mobile slide-over drawer, and interactive cloud deployment views.

Side Nav Shell

Left-rail application shell pairing a full-height collapsible sidebar (workspace switcher, quick actions, grouped route navigation, collapsible pinned collections with row menus, and user footer menu) with a mobile drawer fallback and interactive creative workspace views.

Top Nav Shell

Top-navigation application shell with a centered horizontal Navbar (brand mark, route links, ⌘K command search dialog, notifications popover, account menu), mobile slide-over drawer fallback, and interactive public & internal operations views.

Side Gallery

Editorial architectural monograph pairing a sticky left-hand project narrative, metadata list, metrics, and actions beside a vertical scrolling plate stack with a keyboard-navigable lightbox dialog.

Simple Table

Focused Cinder Cloud API keys and service tokens table with environment segment filter, status select, live search, sortable column headers, multi-row selection with a contextual floating ActionBar, per-row overflow menus, create-token dialog, destructive confirmation AlertDialog, pagination, and empty state.

Tree Table

Hierarchical work breakdown and cost rollup tree table with multi-level expand/collapse, visual tree guide lines, live parent rollups, hierarchical indeterminate selection, ancestor-preserving search and health filters, in-place sibling sorting, keyboard treegrid navigation, a floating bulk ActionBar, and a node inspector Drawer.

Work Item Detail

Engineering work item detail workspace with breadcrumb navigation, editable status, priority, assignee, and sprint properties rail, interactive sub-task checklist with live progress bar, linked pull requests and commits tabs, and a filterable activity timeline with comment composer.