Build Components

Beacon

CTA section. Heading, supporting text and actions. Plain HTML, no JavaScript.

Component
CTA section
Pattern
Landmark section
Outputs
React + Tailwind, HTML/CSS/JS
Status
In stock, tested

Test bench

Runs the exported code, not a mock-up.

Output

Beacon · React + TailwindFull width

Keyboard map
KeysWhat happens
TaborShift + TabMove between the buttons. There is nothing else to focus.
EnterFollow the focused link.

Take it home

React + Tailwind CSS v4: install with one command, or copy the file. Your options are already in it.

npx shadcn@latest add "/r/cta.json"

Run it in your project root. It writes components/cta.tsx with the options you set here. Needs Tailwind CSS v4 and a project set up for the shadcn CLI (npx shadcn@latest init).