Cta, figure


Install
npx shadcn add https://ui.klarhimmel.com/r/cta-figure.jsonDetailsAbout, usage, props and more
A short dark closing band: one giant figure in the display font on the left and a single small underlined text link with an arrow beneath it.
Import
Import
- cta/figure
- About
- A short dark closing band: one giant figure in the display font on the left and a single small underlined text link with an arrow beneath it. On a phone the figure scales down and the link stays under it.
- Category
- One clear next step near the end of a page. New project? Set it up once: /get-started/installation.
Notes
When to use it
A short dark closing band with one giant figure in the display font on the left and a single small underlined text link with an arrow beneath it. Use cta-band when the close needs a sentence.
Writing for it
- Choose a figure that makes the case on its own, such as a count of customers or years, and keep it short. - Write the link as the next step in two or three words. - Use it once, near the end of a page, as the last thing a visitor reads.
Watch out for
On a phone the figure scales down and the link stays under it. A long figure string loses its force at the smaller size, so test it at 390 px.
Pairs well with
Usage
The block in a page, with its default content (long lists shortened). Every prop is in the table below.
Props
The type, default and text limit of every prop. On a real page, over-limit text is kept and checkSections flags it (Installation, Check a page before you ship); this live preview shows the default until it fits. The panel above edits all props.
| Prop | Type | Default | Description |
|---|---|---|---|
title | string | 'Say in a few words what the figure …' | Text, up to 80 characters. |
figure | string | '00' | Text, up to 4 characters. |
link | Link | {…} | See the type. |
headingLevel | '1' | '2' | - | One of '1', '2'. Optional; empty is not rendered. |