Skip to content
Hazine

Data Display

3 of 46 shipped. Small read-only structures for presenting records, people, values and sequences.

01 / Cards

0 of 5 shipped

Planned 5

  • Media cover card
  • Card with header tabs
  • Selectable record card
  • Expandable details card
  • Stacked record card

02 / Metric and stat tiles

1 of 6 shipped
  • metric and stat tiles

    Tile with a label, a headline value that counts up and a signed delta with a direction icon and a stated period. The default tile for a dashboard figure.

    How it differs. The baseline tile: one value, one delta, one period. Direction is carried by sign, icon and hidden text together, with no chart and no comparison.

    shadcn add @hazine/metric-card

    Depends on card, @hazine/animated-counter, lucide-react

Planned 5

  • Metric tile with sparkline
  • Metric tile with target progress
  • Comparison pair tile
  • Breakdown list tile
  • Percentile range tile

03 / Lists and rows

0 of 5 shipped

Planned 5

  • Two-line row with meta
  • Row with trailing actions
  • Grouped list with sticky headers
  • Reorderable list with move buttons
  • List with load more

04 / Description lists

0 of 4 shipped

Planned 4

  • Two-column description list
  • Stacked description list grid
  • Description list with copy and edit
  • Field changes description list

05 / Avatars and presence

0 of 5 shipped

Planned 5

  • Avatar with nested entity
  • Avatar stack with overflow
  • Presence avatar with label
  • Avatar with name and role
  • Group avatar

06 / Badges, tags and chips

0 of 5 shipped

Planned 5

  • Count badge
  • Removable chip
  • Filter chip
  • Key and value tag
  • Overflow tag list

07 / Keyboard and code

1 of 5 shipped
  • keyboard and code

    Key cap for a single key or a combination, built from nested kbd elements. Modifier glyphs such as the command sign carry a spoken name and every cap keeps a 24px box.

    How it differs. The primitive key cap that other shortcut displays compose: one kbd per key, nested in an outer kbd for a combination, with named modifiers mapped to glyphs.

    shadcn add @hazine/kbd

Planned 4

  • Shortcut list
  • Code block with copy
  • Install command tabs
  • Diff snippet

08 / Timelines

0 of 5 shipped

Planned 5

  • Vertical event timeline
  • Timeline grouped by day
  • Timeline with actor avatars
  • Milestone track
  • Timeline with collapsible older events
  • accordions and disclosures

    Accordion where any number of sections stay open, under a toolbar with Expand all, Collapse all and a running open count. Use it to fold a long record into titled field groups.

    How it differs. Independent panels under a group toolbar: bulk buttons go inert when they would do nothing, the open set is controllable for deep links, and a panel can render its fields as a description list.

    shadcn add @hazine/accordion-multi-open-controls

    Depends on button, @hazine/heading, @hazine/use-controllable-state, lucide-react, class-variance-authority

Planned 5

  • Native details accordion
  • Accordion with header meta
  • Nested accordion
  • Show more text
  • Details row in a list