Skip to content
Hazine

52 shipped / 1,151 planned / 30 categories

A treasury of interface components.

Components and blocks for the shadcn stack. The source lands in your codebase, styled by your own tokens.

Free components and sample blocks. Pro blocks are a one-time purchase.

pnpm dlx shadcn@latest add @hazine/metric-card
Components
22
Blocks
30
Subcategories
235

1280 px

Cart Page with Summary Rail. A live item, not a picture.Open the item

01 / Variants

Cart pages, built 6 ways.

A variant is a different structure. Not a colour swap and not a numbered clone. The note under each title says what changes: the container, the layout, the hierarchy or the interaction. 6 of 7 planned takes have shipped.

All of cart pages
  • cart pages

    Semantic table whose footer totals sit under the line total column. Below 48rem each row reflows to a stack of label and value pairs with the column labels as visible text.

    shadcn add @hazine/cart-page-table-layout

    Depends on button, table, @hazine/heading, @hazine/number-input-stepper-buttons, @hazine/use-controllable-state, lucide-react

  • cart pages

    One frame per shipment, split into its lines and its own delivery and cost rail with checkout and remove all. A closing ledger sums shipments as rows. A removed shipment leaves a restore slot.

    shadcn add @hazine/cart-page-grouped-by-shipment

    Depends on button, @hazine/heading, @hazine/number-input-stepper-buttons, @hazine/use-controllable-state, lucide-react

  • cart pages

    Two lists with moves in both directions: cart lines closed by a totals band, then a hairline grid of saved lines. Focus stays in the source list and one status message gives count and total.

    shadcn add @hazine/cart-page-saved-for-later

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

  • cart pages

    Selection drives everything: total, item count and checkout label follow the selected lines, a bulk toolbar replaces the hint while any line is selected, and the rail says what stays behind.

    shadcn add @hazine/cart-page-selective-checkout

    Depends on button, @hazine/heading, @hazine/number-input-stepper-buttons, @hazine/use-controllable-state, lucide-react

  • cart pages

    Lines and rail share one frame and the rail stays pinned while lines scroll. Under 48rem the rail drops below and the total with checkout becomes a sticky bottom bar. Removed lines leave an undo row.

    shadcn add @hazine/cart-page-summary-rail

    Depends on button, input, label, @hazine/heading, @hazine/number-input-stepper-buttons, @hazine/use-controllable-state, lucide-react

  • cart pages

    One column with no rail: each line keeps its controls under its name, totals follow the last line as a receipt, and checkout sits inline at the end with no competing region.

    shadcn add @hazine/cart-page-single-column

    Depends on button, separator, @hazine/heading, @hazine/number-input-stepper-buttons, @hazine/use-controllable-state, lucide-react

02 / Catalog index

The whole taxonomy on one screen.

1,151 items are planned in 30 categories. Each row shows what has shipped out of what is planned, so the catalog doubles as its own roadmap.

03 / Borrow the host

One block, three themes it has never met.

A component sets no font, no colour value and no radius of its own. It reads the tokens your theme already has. An item ships at most six status tokens and nothing else.

Try Pricing Table in your own settings
  • Stock neutral, light

  • Dark, radius 1rem

  • Light, radius 0

04 / Accessibility evidence

Stated per item, not claimed for the library.

Every item page carries its own contract. The pattern it follows, the keys it answers to, what a screen reader hears and what changes under reduced motion. This is the panel for Password Input.

Open Password Input
Pattern
Form with labelled fields, Button
Keyboard
Keyboard map of Password Input
KeysAction
TabMoves from the field to the visibility toggle
Enter or Space on the toggleShows or hides the password and keeps focus on the toggle
Screen reader
A native input the consumer labels. The toggle is a button with aria-pressed and aria-controls, and the strength word sits in a status region linked by aria-describedby.
Reduced motion
No motion. Colour transitions only.

05 / Details

Recognisable in greyscale.

Structure is the signature. Selection is a filled surface, never a hue. Numbers are typeset and they add up. These six fragments are patterns that recur across the catalog.

  • Demoted unit

    $24/seat/mo

    The figure leads. The unit stays on its baseline, small and muted.

  • Echoed summary

    3 of 6 add-ons on

    $24 base + $41 add-ons

    Start with 3 add-ons

  • Meter with words

    7 of 10 seats used

  • Ledger row

    Base, 1 seat
    $24
    3 add-ons
    $41
    Total per month
    $65
  • Sentence control

    Billforseats.

    The setting is edited where it is read.

  • Fill-state cell

06 / Install

Three steps, with the CLI you already use.

Hazine is a shadcn registry. Nothing to install as a package and nothing to keep in sync. An AI agent that speaks the shadcn MCP resolves the same namespace.

Read the docs
  1. 1 / Add the registry

    Once per project, in components.json.

    {
      "registries": {
        "@hazine": "https://api.hazine.dev/r/{name}.json"
      }
    }
  2. 2 / Add an item

    The CLI writes the source and its dependencies.

    pnpm dlx shadcn@latest add @hazine/metric-card
  3. 3 / Use it

    It is your file now. Import it and edit it.

    import { MetricCard } from "@/components/hazine/metric-card"

07 / Recently added

The newest items.

52 shipped so far. 32 are free, 20 are Pro.

  • 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

  • alert dialogs

    Confirmation that lists every effect with its count, split into what is lost and what is kept, and holds the confirm button until an acknowledgement is ticked. Use it before deleting an account, workspace or dataset.

    How it differs. The body is a framed list of counted effects in a lost group and a quieter kept band, and the confirm button stays gated behind one acknowledgement checkbox that it points to when pressed early.

    shadcn add @hazine/alert-dialog-consequence-list

    Depends on alert-dialog, button, checkbox, label, @hazine/use-controllable-state, lucide-react

  • app shells

    Application frame with a sidebar, a top bar holding the sidebar trigger and breadcrumb, and a rounded inset main region with the page title. The default starting point for a SaaS product.

    How it differs. Two regions: the page sits as an inset frame on the sidebar surface and scrolls under a fixed top bar. The sidebar slides off canvas on wide screens and becomes a modal sheet on narrow ones.

    shadcn add @hazine/app-shell-sidebar-inset

    Depends on breadcrumb, button, kbd, separator, sidebar, tooltip, @hazine/heading, @hazine/use-controllable-state, lucide-react

  • async state buttons

    Button that runs a promise-returning handler and cycles through idle, pending, success and error by itself, swapping its icon and label. Use it for a save, send or export that settles in a few seconds.

    How it differs. The base four-state machine: width is floored at the idle measurement, presses while pending are ignored through aria-disabled so focus stays put, and every transition is announced.

    shadcn add @hazine/async-button-status-cycle

    Depends on button, @hazine/use-controllable-state, lucide-react

  • billing switches

    A two option radio group, drawn as a segmented control with the annual saving written beside it, that reprices a grid of plans. Use on any page that sells two billing intervals.

    How it differs. A two state interval choice built from native radios, not a toggle. Each plan pairs its monthly figure with a two row ledger of the yearly charge and the saving, so the sums reconcile.

    shadcn add @hazine/billing-switch-interval-radio

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

  • cancellation and pause

    One optional question in a cancel flow: reasons as radio rows, a note field that opens under the reasons that need detail, and skip and send actions of equal weight. Use it before the final confirmation.

    How it differs. A hairline list of radio rows where a follow-up field opens inside the chosen row, above a footer that restates the answer and offers skip and send as two equal outline buttons.

    shadcn add @hazine/cancellation-reason-survey

    Depends on button, label, textarea, @hazine/heading, @hazine/use-controllable-state, lucide-react

  • carousels

    Single-slide carousel that advances every six seconds, with the pause control first in the tab order and a timed bar on the current slide marker. Use it for announcement or testimonial rotations.

    How it differs. Timer-driven: the rotation toggle and a status sentence sit before a crossfading stage, and the slide markers below double as the countdown. Hover and focus hold it, choosing a slide stops it.

    shadcn add @hazine/carousel-auto-rotate-pause-first

    Depends on button, @hazine/use-controllable-state, lucide-react

  • cart pages

    Marketplace cart that nests lines in one frame per seller, each with its own delivery window, shipping cost, total and checkout. A closing ledger sums the shipments. Use when one order ships as several parcels.

    How it differs. One frame per shipment, split into its lines and its own delivery and cost rail with checkout and remove all. A closing ledger sums shipments as rows. A removed shipment leaves a restore slot.

    shadcn add @hazine/cart-page-grouped-by-shipment

    Depends on button, @hazine/heading, @hazine/number-input-stepper-buttons, @hazine/use-controllable-state, lucide-react

08 / Pricing

Pay once, keep it.

No subscription. Components are free. Blocks and templates are a one-time purchase with lifetime access and commercial use.

How Pro access works
  • Free

    $0for every component

    • Every component in the catalog
    • Sample blocks in every category
    • Source in your repository
  • Pro

    $149once, 1 developer

    • Every block and template
    • Lifetime access to new items
    • Commercial use included
  • Team

    $399once, 10 seats

    • Everything in Pro
    • One token per developer
    • Commercial use included