Skip to content

CallToAction

The closing band of a page: the promise again, one sentence, the way in.

import { CallToAction } from '@sypnia/ui/react'

On this page
  1. On night, with Nio
  2. When to use it
  3. For everyone
  4. Props

On night, with Nio

Start in five minutes.

One command, and your app reports its first problem.

Code
import { Button, CallToAction, Character } from '@sypnia/ui/react';

export default function Band() {
  return (
    <div data-surface="night" style={{ background: 'var(--bg)', color: 'var(--fg)' }}>
      <CallToAction title="Start in five minutes." lead="One command, and your app reports its first problem."
        side={<Character name="nio-one-eye" size="7rem" />}
        actions={<><Button variant="primary" size="lg" href="#">Start free</Button><Button variant="quiet" size="lg" href="#">See pricing</Button></>} />
    </div>
  );
}

When to use it

Use it when

  • The end of a landing, before the footer.

Do not use it when

  • In the middle of a page: one is enough.

For everyone

  • Its title is a level 2 heading.

Props

CallToActionTypeDefault
actionsrequired ReactNode
titlerequired ReactNode
lead ReactNode
side ReactNode
  1. On night, with Nio
  2. When to use it
  3. For everyone
  4. Props

    Search pages, sections and terms