Skip to content
Klarhimmel UI
Cta, figure previewCta, figure preview

Install

npx shadcn add https://ui.klarhimmel.com/r/cta-figure.json
DetailsAbout, 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

import Block from '@/components/klarhimmel/blocks/cta-figure';
Also called
  • 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.

Usage

The block in a page, with its default content (long lists shortened). Every prop is in the table below.

section.tsx
import { Theme } from '@/components/klarhimmel/theme/style';
import { BlockSurface } from '@/components/klarhimmel/blocks/surface';
import CtaFigure from '@/components/klarhimmel/blocks/cta-figure';

export default function Section() {
  return (
    <Theme theme="brand">
      <BlockSurface>
        <CtaFigure props={{
          "title": "Say in a few words what the figure stands for",
          "figure": "00",
          "link": {
            "label": "Say what the visitor does next",
            "href": "#start"
          }
        }} />
      </BlockSurface>
    </Theme>
  );
}

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.

PropTypeDefaultDescription
titlestring'Say in a few words what the figure …'Text, up to 80 characters.
figurestring'00'Text, up to 4 characters.
linkLink{…}See the type.
headingLevel'1' | '2'-One of '1', '2'. Optional; empty is not rendered.