CTA 45
cardText Align Left1 ColumnCardsButtonsText OnlyCTA Section

Code
relume-cta45.tsx
import { Button, type ButtonProps } from "@/components/ui/button";
import { Card } from "@/components/ui/card";
type Props = {
heading: string;
description: string;
buttons: ButtonProps[];
};
export type Cta45Props = React.ComponentPropsWithoutRef<"section"> & Partial<Props>;
export const Cta45 = (props: Cta45Props) => {
const { heading, description, buttons } = {
...Cta45Defaults,
...props,
};
return (
<section className="px-[5%] py-16 md:py-24 lg:py-28">
<div className="container">
<Card className="grid grid-cols-1 items-start justify-start gap-6 p-8 md:grid-cols-[1fr_max-content] md:items-center md:justify-between md:gap-x-12 md:gap-y-8 lg:gap-x-20 lg:p-12">
<div className="md:mr-12 lg:mr-0">
<div className="w-full max-w-lg">
<h3 className="mb-3 text-h3 font-bold md:mb-4">{heading}</h3>
<p className="text-medium">{description}</p>
</div>
</div>
<div className="flex w-full flex-wrap items-center justify-end gap-4 md:w-auto">
{buttons.map((button, index) => (
<Button key={index} {...button}>
{button.title}
</Button>
))}
</div>
</Card>
</div>
</section>
);
};
export const Cta45Defaults: Props = {
heading: "Medium length heading goes here",
description: "Lorem ipsum dolor sit amet, consectetur adipiscing elit.",
buttons: [{ title: "Button" }, { title: "Button", variant: "secondary" }],
};npm i @radix-ui/react-slot class-variance-authority@0.7.1 clsx@^2.1.1 motion@^12.15.0 relume-icons@1.3.0 tailwind-merge@^2.2.2


