CTASection
Full-width conversion band with eyebrow, headline, supporting copy and actions.
Design intent
Every marketing page ends with the same call-to-action band, but teams rebuild the padding, width and tone each time. CTASection standardizes the hierarchy and defaults to an inverse band.
npx @slipstream-ui/cli@latest add cta-sectionGet started
Start building
Connect your data, invite your team and ship the next release.
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| title | string | required | Headline for the call to action. |
| description | string | — | Supporting copy under the headline. |
| eyebrow | string | — | Small overline above the headline. |
| actions | ReactNode | — | Buttons or links. |
| tone | 'default' | 'muted' | 'brand' | 'inverse' | 'inverse' | Surface treatment. |
| align | 'left' | 'center' | 'center' | Copy alignment. |
| size | 'sm' | 'md' | 'lg' | 'md' | Vertical space. |
| width | 'sm' | 'md' | 'lg' | 'xl' | 'full' | 'lg' | Inner container width. |
Anti-patterns
validate_usage is the MCP tool that rejects these mistakes: the same list agents see over MCP and in the canonical markdown.
Don't stack two CTA sections
One conversion band per page is enough. Put secondary actions in the hero or footer.
tsx// Avoid<CTASection title="Join" /><CTASection title="Join now" />
Accessibility
- Renders an h2 under the page h1.
- Inverse tone scopes the token ladder, so semantic Button variants keep their contrast.
Content guidelines
CTA copy
- State the outcome
- Use one primary verb
- Keep the supporting line to one sentence
Good examples
- Join the network
- Get matched with an advisor
Bad examples
- Submit
- Click here
Composition
Compose with Section: CTASection renders Section internally; do not wrap it in another Section
<CTASection title="Ready?" actions={<Button>Start</Button>} />
Compose with Button: Use one primary action and at most one secondary
<CTASection actions={<><Button>Start</Button><Button variant="outline">Learn more</Button></>} />
Dependencies
What the registry installs alongside this component. Package imports already include these.
npm packages
- class-variance-authority
- clsx
- tailwind-merge
Browser support
| Browser | Tested versions |
|---|---|
| Chrome | 111+ (Mar 2023) |
| Edge | 111+ (Mar 2023) |
| Firefox | 121+ (Dec 2023) |
| Safari | 17.2+: macOS & iOS (Dec 2023) |
Slipstream components rely only on CSS custom properties, Flexbox/Grid, and ARIA, the everyday baseline of the last two years of evergreen releases. Anything newer is progressive enhancement: unsupported browsers keep full functionality with static behavior instead of animations.