Skip to content

Blocks

The Components pages show each part on its own; blocks show them working together. Each one below is plain HTML using the documented classes — flip to the Code tab to copy the whole section. Interactive bits (menus, toasts, …) install the same way as everywhere else (see Installation → Behaviors).

A form card — hc-field rows (input, select, switch) over a footer action bar.

Account settings

A list view — a header bar with search (hc-input-group) and actions, a hc-table with status badges, and a pager.

Users
NameRoleStatus
Ada LovelaceEngineerActive
Alan TuringResearcherAway
Grace HopperAdmiralActive

A centred auth card — two fields, a checkbox, and a full-width primary button.

Sign in

A notification list — hc-item rows with avatars and trailing badges.

Recent activity
A
Ada commented on “Q3 report”2 minutes ago
New
G
Grace merged “feat/auth”1 hour ago
Deploy finishedToday, 09:14
OK

A full admin dashboard — hc-shell (header, sidebar, scrolling main, footer). The sidebar nav is built from hc-item rows (icon + label, the active one selected); the header carries search and an account avatar; the main has a toolbar, a grid of stat cards with delta badges, and a recent-orders table. Click « to collapse the sidebar to an icon rail — it’s live, driven by installShell() (data-collapsible on the nav + a [data-hc-shell-collapse] button; each label is wrapped in .hc-shell__label, kept in the a11y tree). Narrow the window below 60rem and the collapse control gives way to a [data-hc-shell-toggle] hamburger () that slides the nav in as an off-canvas overlay — the same installShell() handles focus, Escape, and scrim click-out. The --hc-shell-sidebar-width / --hc-shell-pad knobs and the demo’s fixed height just scale the shell into the box below; drop them to fill the viewport.

Acme
Y
Dashboard
Revenue$48.2k▲ 12%
Orders1,204▲ 4%
Refunds18▼ 2%
Recent orders
OrderCustomerStatus
#1042Ada LovelacePaid
#1041Alan TuringPending
#1040Grace HopperPaid
© Acme · v2.4

A detail-page header — back link, title with a status badge, description, and a trailing actions cluster. Pure layout utilities (hc-stack + hc-cluster + hc-spacer) with logical margins; no dedicated component needed.

← Back to projects

Acme widgets

Active

Last updated 2 hours ago by Grace Hopper.

The hc-spacer pushes the actions to the inline-end edge, so the row works unchanged under dir="rtl". On narrow viewports the hc-cluster wraps — actions drop below the title instead of overflowing.

  • Components — every building block, documented.
  • Kitchen sink — every component, live, in isolation.
  • Recipes — htmx interaction patterns (confirm, live search, …).