Availability
Nine homes went in the first month. The two bedrooms in the warehouse are moving fastest, and the penthouse is still available.
An availability call to action built around one huge figure: the number of homes still for sale counts up from zero as it enters the viewport, with a short paragraph and a pill button beside it, then a full-width hairline that draws across and fills in dark to the share of homes sold, captioned with the sold count and the percentage.
An availability call to action for a development's sales page built around one huge figure: the number of homes still for sale counts up from zero as it enters the viewport, with the eyebrow above it and a short paragraph and a pill button beside it. Under the row a full-width hairline draws across and then fills in dark to the share of homes sold, captioned with the sold count out of the total and the percentage.
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://beste.dev/r/realestate57?email=YOUR_EMAIL&license_key=YOUR_KEY"Base UI flavor
npx shadcn add "https://beste.dev/r-base/realestate57?email=YOUR_EMAIL&license_key=YOUR_KEY"This installs the block to components/beste/block/realestate57.tsx together with the badge24 eyebrow and button25 pill components and the shadcn/ui button primitive behind the button.
The installed file exports realestate57Demo alongside the block: the exact props behind the preview above. Spread it to get a working section in one line.
import { Realestate57, realestate57Demo } from "@/components/beste/block/realestate57";
export default function Page() {
return <Realestate57 {...realestate57Demo} />;
}Then replace the demo with your own props. Written out, a trimmed setup looks like this:
import { Realestate57 } from "@/components/beste/block/realestate57";
import { ArrowRight } from "lucide-react";
export default function Page() {
return (
<Realestate57
eyebrow="Availability"
total={24}
sold={9}
locale="en-US"
labels={{ remaining: "homes remaining", sold: "sold since launch", of: "of" }}
description="Nine homes went in the first month. The penthouse is still available."
button={{ label: "See what is left", href: "/residences", icon: ArrowRight }}
/>
);
}| Prop | Type | Default | Description |
|---|---|---|---|
eyebrow | string | – | Short line above the figure, drawn with a rule in front of it. |
total | number | – | Total number of homes in the development. |
sold | number | – | Homes sold so far; the figure shows total minus sold and the bar fills to their share. |
locale | string | – | Locale for number formatting, en-US when omitted. |
labels | Labels | {} | The word after the big figure and the two words in the caption under the bar. |
description | string | – | Short paragraph beside the figure. |
button | { label: string; href: string; icon?: LucideIcon } | – | Pill button under the paragraph. |
className | string | – | Extra classes merged onto the section. |
type Labels = {
remaining?: string;
sold?: string;
of?: string;
};total - sold with a 1.4 second duration and no bounce, started once the figure row is 10% inside the viewport; it rounds on every frame and is formatted with Intl.NumberFormat, and the element is aria-live="polite".sold is clamped to total, so the figure never goes below zero and the bar never passes the end of the hairline.of, total and the sold label, with the percentage rounded on the right; it rises after the bar.prefers-reduced-motion the figure shows the final value at once and the bar and text render complete.