Call to Action Blocks for Astro
Call to action sections with a clear next step and optional supporting evidence.
Centered
Center the invitation and keep its actions together.
bunx --bun shadcn@latest add @gnostic/cta-1npx shadcn@latest add @gnostic/cta-1pnpm dlx shadcn@latest add @gnostic/cta-1Centered actions
Place one or more actions over a full-width image.
bunx --bun shadcn@latest add @gnostic/cta-centered-actionsnpx shadcn@latest add @gnostic/cta-centered-actionspnpm dlx shadcn@latest add @gnostic/cta-centered-actionsIlluminated
A soft light highlights the top of the card. Use the note below the links for trial terms or other details that help readers choose an action. The layout adapts Blank Design’s CTA 01.
bunx --bun shadcn@latest add @gnostic/cta-illuminatednpx shadcn@latest add @gnostic/cta-illuminatedpnpm dlx shadcn@latest add @gnostic/cta-illuminatedSplit
Use separate columns for the invitation and its supporting content.
bunx --bun shadcn@latest add @gnostic/cta-2npx shadcn@latest add @gnostic/cta-2pnpm dlx shadcn@latest add @gnostic/cta-2Spread
Spread the message and actions across the section.
bunx --bun shadcn@latest add @gnostic/cta-3npx shadcn@latest add @gnostic/cta-3pnpm dlx shadcn@latest add @gnostic/cta-3Background
Place a short invitation on a background surface.
bunx --bun shadcn@latest add @gnostic/cta-4npx shadcn@latest add @gnostic/cta-4pnpm dlx shadcn@latest add @gnostic/cta-4Checklist
Add a short checklist before the next action.
bunx --bun shadcn@latest add @gnostic/cta-5npx shadcn@latest add @gnostic/cta-5pnpm dlx shadcn@latest add @gnostic/cta-5Reversed
Reverse the content order to fit the surrounding sections.
bunx --bun shadcn@latest add @gnostic/cta-6npx shadcn@latest add @gnostic/cta-6pnpm dlx shadcn@latest add @gnostic/cta-6Tinted
Use a tinted surface to separate the invitation from adjacent content.
bunx --bun shadcn@latest add @gnostic/cta-7npx shadcn@latest add @gnostic/cta-7pnpm dlx shadcn@latest add @gnostic/cta-7Subtle
Keep the message short when the page has already explained the offer.
bunx --bun shadcn@latest add @gnostic/cta-8npx shadcn@latest add @gnostic/cta-8pnpm dlx shadcn@latest add @gnostic/cta-8Orbit call to action
Supply your own content. The section uses the selected project preset.
bunx --bun shadcn@latest add @gnostic/cta-orbitnpx shadcn@latest add @gnostic/cta-orbitpnpm dlx shadcn@latest add @gnostic/cta-orbitcontentOrbitCtaContent
Section content.
OrbitCtaContentclass?string
Classes added to the root.
stringScrolling ticker
bunx --bun shadcn@latest add @gnostic/cta-scrolling-tickernpx shadcn@latest add @gnostic/cta-scrolling-tickerpnpm dlx shadcn@latest add @gnostic/cta-scrolling-tickerChoose a layout
Choose a CTA after the reader has enough information to act. State what happens next, such as viewing plans or sending an enquiry, instead of using a vague action label.
Pass content from Astro
Pass the title, description, and button links required by the block. Some variants also accept avatars, a rating, and proof text. Use those fields only for accurate evidence and keep the main action clear.
Responsive layout and images
Check the button row and heading on narrow screens. Optional avatars need real image sources or useful initials; they should not become unexplained decorative people. Theme contrast must remain sufficient on tinted CTA backgrounds.
Compose the next section
Use Pricing before a purchase action and Contact for an enquiry. A CTA link alone does not implement checkout or a form submission.
Named slots
These slots are optional. Use the slot name on a direct child of the block.
cta-orbit
mark?Astro content
Places a mark before the label above the heading.
Astro contentdark-pattern-section and pattern-cta
pattern?Astro content
Places decorative content behind the call to action.
Astro content