Skip to content
Haze UI

CTA: split benefits panel

A call to action beside a concise checklist of included benefits.

pnpm dlx shadcn@latest add @haze/cta-split-benefits
Open preview in a new tab
Liveno JavaScript

When to use

  • An action needs a short explanation of what is included
  • The page has a few benefits that support a single next step

When not to use

  • Two equally prominent actions need a centered layout; use cta-banner

Installation

Add the Haze registry to components.json once, then install CTA: split benefits panel with the shadcn CLI. Works in any Astro project with Tailwind CSS v4.

pnpm dlx shadcn@latest add @haze/cta-split-benefits
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"cta-split-benefits"Unique section and benefits anchor prefix.
eyebrowstring"Get started"Label above the title.
titlestringdemo headingCall-to-action heading.
descriptionstringdemo copySupporting explanation.
headingLevel1 | 2 | 32Heading level for the page context.
actionLabelstring"See what's included"Text for the primary action.
actionHrefstring–Action destination; defaults to the local benefits list.
benefitsstring[]3 example benefitsShort benefits presented as a list.
classstring–Additional section classes.

Keyboard interactions

Tab, Enter
Focus and follow the action link.

Accessibility

  • Benefits are a semantic list, with check icons hidden from assistive technology.
  • The default action links to the benefits list; set a destination and matching label for a production call to action.

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 "CTA: split benefits panel" with `npx shadcn@latest add @haze/cta-split-benefits`. 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 CtaSplitBenefits from "@/components/haze/blocks/cta-split-benefits.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/cta-split-benefits.md

  • Customize with real content

    Adapt the Haze cta-split-benefits block for our product. Replace the demo values of these props with our real content: id, eyebrow, title, description, headingLevel, actionLabel, actionHref, benefits, class. Keep the layout, the heading level rules and these accessibility details: Benefits are a semantic list, with check icons hidden from assistive technology. The default action links to the benefits list; set a destination and matching label for a production call to action. Do not add raw color classes; use the Haze tokens.

  • Choose the right block

    Before using cta-split-benefits, check it fits: use it when an action needs a short explanation of what is included; the page has a few benefits that support a single next step. Avoid it when two equally prominent actions need a centered layout; use cta-banner. Alternatives: @haze/cta-banner.

Dependencies

  • npm: @lucide/astro
  • @haze/button
  • @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