About Shadcn UI Call to Action Blocks
A CTA section is a focused block that asks visitors to take one clear step, such as starting a trial, booking a call or getting in touch. These eleven shadcn CTA blocks range from a single line with a button to image grids, background photos, contact columns and an agency layout with service cards.
Like the rest of our shadcn blocks, each section is written in React and TypeScript, styled with Tailwind CSS and built from shadcn ui components such as Button, Card, Badge and Avatar. They read the colors from your theme, stack cleanly on small screens and work as drop-in shadcn components for landing pages, product sites and portfolios.
Key Elements of a CTA Section
- Benefit headline: a short line such as βReady to transform your business?β that tells visitors what they gain.
- Supporting sentence: one line that removes a doubt, for example a free trial or a free 30 minute call.
- Primary button: a specific label like Start Free Trial, Book a Call or Get in touch, styled as the strongest element.
- Secondary action: a softer option such as Learn More or Schedule a Demo for visitors who are not ready to commit.
- Visual support: an image, background pattern or avatar group that adds context or trust without hiding the button.
Where and Why to Use CTA Blocks
A visitor who has just read your features or a testimonial is at the point where they decide to act or leave. A CTA block puts the next step right there, so they do not have to scroll back to the hero. Repeating the same action at a few points on a long page also raises conversion without adding new copy. Since the blocks are built with shadcn ui and Tailwind CSS, they match the buttons and cards used elsewhere on your site.
- SaaS landing pages: close the page with a trial or sign up offer after features and pricing.
- Agency and freelance sites: invite visitors to book a call and show the services you offer.
- Online courses: pair a Start Learning button with learner avatars and a student count.
- Real estate and travel: let property or destination photos do the selling around a booking button.
- Contact sections: list email, office and phone details when a direct conversation is the goal.
- Promotions: highlight a discount or limited offer on a background image with a clear Get Started button.
CTA Blocks in This Collection
- CTA Section 1: A one line closer for the bottom of a page, where a soft gradient adds color without competing with the button.
- CTA Section 2: Use it when you want a centered message with a primary action and a lighter text link, framed by a subtle dashed grid.
- CTA Section 3: Fits product sites that want to show a screenshot or photo beside the trial offer inside one bordered card.
- CTA Section 4: A plain, text only option for pages that already have enough visuals and only need the offer restated.
- CTA Section 5: Built for course and community products, where showing how many people already joined helps the sign up.
- CTA Section 6: Suits studios and portfolios that want a band of project images to carry the invitation to get in touch.
- CTA Section 7: Good for SaaS pages that offer both a trial and a demo, with a product image anchored to the bottom corner of a muted panel.
- CTA Section 8: A photo led section for real estate or hospitality, with an italic serif accent that gives the headline more character.
- CTA Section 9: Works best for a time limited offer or discount that needs to stand out as a colorful banner.
- CTA Section 10: Choose it when the action is to reach a person directly, by email, phone or office visit, rather than to click a button.
- CTA Section 11: Made for agencies and consultants who want to put faces next to the booking button and point to their service pages.
Similar Block Categories
- Hero Sections: open the page with the same action your CTA repeats at the end.
- Newsletter Sections: collect an email address when a sign up is too big a step.
- Pricing Tables: show the plans right before the final call to action.
- Contact Us: give visitors a full form when a call or email is the next step.
- Testimonials: place customer quotes before the CTA to build trust.
Accessibility
Buttons are shadcn Button components rendered as links through asChild, so they are reachable with the keyboard and show the default focus ring. Headlines use h2 or h3 elements, and the images in CTA Section 5, 6, 7 and 8 carry descriptive alt text. CTA Section 3 still has a placeholder alt of β...β, so replace it with a real description, or an empty alt if the image is decorative. The avatar images in CTA Section 5 and 11 have alt text and initials as a fallback.
Check contrast when you change backgrounds: CTA Section 9 uses black text on a photo and CTA Section 1 places text over a gradient. Button labels such as Learn More are generic, so consider adding an aria-label that names the target page when several similar links appear on the same page.
CTA Sections FAQ
Button asChild and href set to #, so you only change the href. CTA Section 4, CTA Section 7, CTA Section 8 and CTA Section 9 render plain Button elements without a link, so wrap them in a Link with asChild or add an onClick handler before you ship.images.remotePatterns in next.config. CTA Section 6 and CTA Section 5 keep their images in arrays at the top of the component, and CTA Section 9 sets its photo as a an arbitrary Tailwind background image class on the wrapper.services and experts are plain arrays you can extend.lg:grid-cols-2 or lg:flex-row, so they stack into one centered column below the large breakpoint. In CTA Section 3 the image moves above the text on small screens. CTA Section 6 narrows its portrait images to w-32 and clips the overflow, and CTA Section 8 drops from three images per row to one.text-black and text-black/60 to colors that keep enough contrast on the new image.
