Componentnavigation0.83 KB gzipZero dependencies
CtaSection
Double-frame call-to-action band with stamp-seal corner badge and stamping action button.
Preview
Live Preview
Installation
Tokens guide →Add to your project via CLI (zero dependencies, code you own):
npx bigbullui add cta-sectionOr install the full npm package:
npm install bigbulluiUsage
tsx3 lines
import { CtaSection } from "@/components/ui/cta-section"; <CtaSection title="Print the night" action={{ label: "Get tickets", href: "/tickets" }} />Source code
cta-section.tsx + 1 helperZero third-party dependencies (2 local files shown in tabs below).
tsxcta-section.tsx73 lines
import * as React from "react";import { cn } from "./lib/utils"; export interface CtaButton { label: string; href: string;} export interface CtaSectionProps extends React.HTMLAttributes<HTMLElement> { title: string; highlight?: string; copy?: string; action?: CtaButton; sealText?: string;} export function CtaSection({ title,Props
Interactive Prop Playground
Tweak parsed AST props below to generate ready-to-paste JSX.
tsx3 lines
import { CtaSection } from "@/components/ui/cta-section"; <CtaSection />| Prop | Type | Description |
|---|---|---|
| title | string | Primary heading or title text. |
| highlight | string | Configures highlight. |
| copy | string | Configures copy. |
| action | CtaButton | Configures action. |
| sealText | string | Configures seal text. (Default: "Admit One") |