A referral section walking through three numbered steps and the full terms as a hairline table, beside a column that sticks and floats a live credit card on an image tile.
A referral section walking through three numbered steps and the full terms as a hairline table, beside a column that sticks and floats a live credit card on an image tile.
Upgrade to Pro
Pro blocks install through the shadcn CLI with your license key and ship their full source. Docs and live previews stay open to everyone, so you can read every block's details first.
Swap YOUR_EMAIL and YOUR_KEY for the email and license key on your account. Find your license key on your account page.
Radix flavor
npx shadcn add "https://ui.beste.co/r/social56?email=YOUR_EMAIL&license_key=YOUR_KEY"Base UI flavor
npx shadcn add "https://ui.beste.co/r-base/social56?email=YOUR_EMAIL&license_key=YOUR_KEY"This installs the block to components/beste/block/social56.tsx, the money23 credit piece it floats on the tile (installed to components/beste/piece/money23.tsx), and the badge23 and button21 components it uses for the eyebrow and the action.
The installed file exports social56Demo alongside the block: the exact props behind the preview above. Spread it to get a working programme page in one line.
import { Social56, social56Demo } from "@/components/beste/block/social56";
export default function ReferralPage() {
return <Social56 {...social56Demo} />;
}Then replace the demo with your own props. Written out, a trimmed setup looks like this:
import { Money23 } from "@/components/beste/piece/money23";
import { Social56 } from "@/components/beste/block/social56";
export default function ReferralPage() {
return (
<Social56
badge={{ label: "Refer a practice" }}
heading="If you send us someone, both of you get a quieter invoice"
description="No affiliate dashboard and no tiers."
steps={[
{
title: "Send them your link",
description: "It goes to a page with your practice named on it.",
},
{
title: "We talk to them first",
description: "If they are not a good fit we say so and nobody is credited.",
},
]}
media={
<Money23
label="Credit for each of you"
amount="$580"
period="one month"
delta="Both accounts"
rows={[{ label: "Your account", amount: "$580" }]}
/>
}
image={{ src: "/backdrops/blue.jpg", alt: "Soft blue gradient backdrop" }}
termsTitle="The whole arrangement"
terms={[
{ label: "Credit each", value: "One month, capped at $580" },
{ label: "Paid when", value: "Their first clinic goes live" },
]}
button={{ label: "Get your link", href: "/referrals" }}
note="We do not pay for reviews, and we will not ask you to post about us."
/>
);
}| Prop | Type | Default | Description |
|---|---|---|---|
badge | { label: string } | – | Eyebrow above the hairline rule, rendered through Badge23 |
heading | string | – | Section heading in the left column of the header |
description | string | – | Supporting paragraph, right-aligned from md up |
steps | Step[] | [] | How the referral works, numbered automatically |
media | ReactNode | – | Live asset on the sticky tile, money23 in the demo |
image | { src: string; alt: string } | – | Backdrop behind the media tile |
termsTitle | string | – | Heading above the terms table |
terms | Term[] | [] | The full arrangement as label and value pairs |
button | { label: string; href: string } | – | Action in the sticky column |
note | string | – | Policy note under the action |
className | string | – | Extra classes for the outer section |
type ActionLink = {
label: string;
href: string;
};
type TileImage = {
src: string;
alt: string;
};
type Step = {
title: string;
description: string;
};
type Term = {
label: string;
value: string;
};String(index + 1).padStart(2, "0") renumbers automatically when steps are reordered.dl in a two-column grid from sm, filling column by column, so an odd number of terms leaves the gap at the end rather than mid-table.terms is where the whole arrangement goes, including the cap and the expiry. The block is written on the premise that a referral programme with hidden terms is worse than none.lg:sticky lg:top-24 lg:self-start. The self-start is required, otherwise the column stretches to the row height and sticky has nothing to travel within.items-start, so Button21 keeps its intrinsic width with the note underneath at the same left edge.border-t above the heading, which separates the arrangement from the steps rather than reading as a fourth step.note deliberately states what is not rewarded, which is what keeps the section from reading as a general incentive to promote.social53
A community credit section opening on three hairline figures, then naming each contributor in a hairline matrix of cards with their practice, what they changed, and how many reports they filed.
social26
Referral sharing card with copyable link, referral code, email invite input, and reward information. Perfect for referral programs and invite-a-friend features.
social50
A social section that gives one post an image tile of its own, floating a live post card with its engagement counts, beside the replies it drew as linked hairline rows.
social52
An upcoming sessions list with a date block, format, and remaining seats on each linked hairline row, beside a column that sticks and floats a live card for whoever is hosting next.