Skip to content
Haze UI

Download: platform cards

Download options with platform descriptions and optional download links.

pnpm dlx shadcn@latest add @haze/download-platform-cards
Open preview in a new tab
Liveno JavaScript

When to use

  • A product has separate desktop and mobile downloads
  • Visitors need a short explanation of each available app

When not to use

  • The options are integrations with other products; use integrations-card-grid

Installation

Add the Haze registry to components.json once, then install Download: platform cards with the shadcn CLI. Works in any Astro project with Tailwind CSS v4.

pnpm dlx shadcn@latest add @haze/download-platform-cards
First time? Registry and theme setup

1. Add to components.json:

{
  "registries": {
    "@haze": "http://localhost:4329/r/{name}.json"
  }
}

2. Install the theme once: npx shadcn@latest add @haze/theme, then import it after Tailwind in your global CSS:@import "./haze.css";

API reference

PropTypeDefaultDescription
idstring"download-platform-cards"Unique section ID prefix.
eyebrowstring"Take it with you"Label above the heading.
titlestringdemo headingDownload section heading.
descriptionstringdemo copyIntroduction; the default marks platform entries as examples.
headingLevel1 | 2 | 32Heading level; platform names use the next level.
platforms{ name: string; detail: string; kind: 'desktop' | 'mobile'; href?: string }[]2 example platformsPlatforms and their download URLs. Entries without URLs show an example label.
classstring–Additional section classes.

Keyboard interactions

Tab
Reach available download links.

Accessibility

  • Platform names are headings inside a list and the icons are decorative.
  • Download links include the platform name; entries without a URL have no inactive link.

Notes for AI

Copy into Claude Code, Cursor, Codex or any coding agent. Agents can also read the Markdown version of this page.

  • Install and use

    Install the Haze UI block "Download: platform cards" with `npx shadcn@latest add @haze/download-platform-cards`. If components.json has no "@haze" registry yet, add "registries": { "@haze": "http://localhost:4329/r/{name}.json" }. If src/styles/haze.css does not exist yet, run `npx shadcn@latest add @haze/theme` once and import it from the global stylesheet after Tailwind. The CLI stops at an overwrite question when a Haze file already exists and differs, even with --yes, and then installs nothing after it: read its output. If the user has not edited their Haze files, re-run with --overwrite to take the registry versions; if they have, ask them before overwriting. Then import DownloadPlatformCards from "@/components/haze/blocks/download-platform-cards.astro" (or the relative path) and render it where it fits the page. Keep Haze token classes (bg-background, text-muted-foreground, border-border...) and never hardcode colors. Docs: http://localhost:4329/blocks/download-platform-cards.md

  • Customize with real content

    Adapt the Haze download-platform-cards block for our product. Replace the demo values of these props with our real content: id, eyebrow, title, description, headingLevel, platforms, class. Keep the layout, the heading level rules and these accessibility details: Platform names are headings inside a list and the icons are decorative. Download links include the platform name; entries without a URL have no inactive link. Do not add raw color classes; use the Haze tokens.

  • Choose the right block

    Before using download-platform-cards, check it fits: use it when a product has separate desktop and mobile downloads; visitors need a short explanation of each available app. Avoid it when the options are integrations with other products; use integrations-card-grid. Alternatives: @haze/integrations-card-grid.

Dependencies

  • npm: @lucide/astro
  • @haze/utils
  • @haze/theme (one-time setup)

Source · Original Haze UI work.

Catalog

↑↓ moveEnter openEsc close

Keyboard shortcuts

CtrlK
Command palette
/
Focus search
←↑→↓
Move between cards
jk
Next / previous card
ci
Copy code / install command (detail page)
[]
Previous / next entry
?
This help
Esc
Close dialog