Command CTA
A developer call to action: heading and buttons beside a terminal-style box with package-manager tabs, a command that types itself and re-types only what differs, and a copy button.
pixikit.com/docs/blocks/cta/command-cta
Customize
Typing
Side
Props
12| Name | Type | Default | Description |
|---|---|---|---|
eyebrow | string | "Get started" | Small label above the heading. Leave empty for none. |
heading | string | "Start building in one command" | The heading of the section. Leave empty for none. |
text | string | "Install the package, import it and ship. It works with the tools you already use." | The line under the heading. Leave empty for none. |
commands | CommandCtaCommand[] | DEFAULT_COMMANDS | One tab per command. |
primary | CommandCtaLink | null | DEFAULT_PRIMARY | The main button. Null for none. |
secondary | CommandCtaLink | null | DEFAULT_SECONDARY | The quiet button beside it. Null for none. |
copyLabel | string | "Copy" | Label of the copy button. |
copiedLabel | string | "Copied" | Label of the copy button for a moment after copying. |
typing | boolean | true | Type the command in the first time the block enters view. |
notes | string[] | DEFAULT_NOTES | Short points shown as a row of checks under the command. |
side | "left" | "right" | "right" | Which side of the text the command sits on, in a wide container. |
className | string | None |