CallToAction
The closing band of a page: the promise again, one sentence, the way in.
import { CallToAction } from '@sypnia/ui/react'
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
| CallToAction | Type | Default |
|---|---|---|
actionsrequired | ReactNode | |
titlerequired | ReactNode | |
lead | ReactNode | |
side | ReactNode |