Cta

The closing call to action near the end of a page, as a raised card or an open band.

Status: beta. Category: Blocks.

import { Cta } from '@glyphui/blocks'

Exports: Cta, ctaStyles.

Cta props

PropTypeDefaultDescription
title (required)ReactNode
actionsReactNode
animatebooleantrueEntrance animations as the block scrolls into view. They follow the theme's motion level and the visitor's reduced-motion setting; false turns them off for this block. Default true.
descriptionReactNode
headingLevelHeadingLevel2
variant"band" | "card"cardcard (default) is a raised panel; band is open text across the page.

Example: Card

import { Cta } from '@glyphui/blocks'
import { Button } from '@glyphui/ui'

export default function Example() {
  return (
    <Cta
      title="Send your next invoice in five minutes"
      description="Connect your payment provider, pick a template, and you’re done."
      actions={
        <>
          <Button size="lg">Start free</Button>
          <Button size="lg" variant="ghost">
            Talk to sales
          </Button>
        </>
      }
    />
  )
}

Example: Band

import { Cta } from '@glyphui/blocks'
import { Button } from '@glyphui/ui'

export default function Example() {
  return (
    <Cta variant="band" title="Ready when you are" actions={<Button>Create an account</Button>} />
  )
}

Live page: https://glyphui.xyz/components/cta