Variants
cta-1
Centered layout with avatar group + star rating social proof above the headline and two large CTA buttons.
cta-2
Centered layout with a single prominent CTA button, no social proof.
cta-3
Split layout: headline on the left, action buttons on the right.
cta-4
Centered layout with a feature checklist beneath the headline.
cta-5
Centered layout with a logo cloud strip beneath the buttons.
cta-6
Floating card variant with a background color fill and centered content.
cta-7
Split layout with an embedded image or media on one side.
cta-8
Banner strip variant: compact single-row layout with inline CTA button.
Sanity _type names
Props interface
cta-1.astro is the canonical reference:
Additional CSS classes forwarded to the root
<Section> element.HTML
id attribute for anchor links.CTA buttons rendered centered in the section. The first item uses the
default button variant at size="lg"; subsequent items use secondary. Each item accepts icon, text, href, and target.Social proof composite element rendered above the headline. Contains:
images— array of avatar objects (src,alt), displayed as a stacked avatar group with a ring borderrating— numeric star rating (1–5) rendered by the<Rating>primitivedescription— short trust copy beneath the rating (e.g."Trusted by 10,000+ customers")
<slot /> inside <SectionProse>.
Storybook story
Component internals
cta-1.astro uses the Section primitive with variant="floating" to produce the card-like appearance with padding and a border:
Installation
cta-2 through cta-8) as needed.
All 8 CTA variants are pre-installed in the repo. Sanity schema + GROQ wiring is tracked in Stories 2.4–2.8. The
item.rating field maps to a Sanity number field clamped to 1–5.