Scan in steps
A panel where steps follow each other, with a clickable progress bar per step.
UniversalUsed in production
Install
npx finepieces add scan-stepsOr with the shadcn CLI ›
npx shadcn@latest add https://finepieces.net/r/scan-steps.jsonexample.tsx
import { ScanSteps } from "@/components/fine-pieces/scan-steps";
export default function Example() {
return (
<ScanSteps
url="kofiandco.com"
steps={[
{
label: "Read",
title: "Reading",
body: (
<div className="flex flex-wrap gap-2.5">
{["menu", "about", "locations", "beans", "contact", "careers"].map((p) => (
<span key={p} className="rounded-[10px] bg-muted px-3.5 py-2.5 font-mono text-[13px] text-muted-foreground">/{p}</span>
))}
</div>
),
},
{
label: "Business",
title: "The business",
body: (
<div className="flex items-center gap-4">
<span className="grid size-[72px] place-items-center rounded-[18px] bg-[#C67B3C] text-[34px] font-extrabold">K</span>
<div>
<b className="text-[24px]">Kofi & Co</b>
<p className="text-muted-foreground">Coffee bar · 3 locations · Shopify</p>
</div>
</div>
),
},
{
label: "Team",
title: "The team",
body: (
<div className="grid grid-cols-2 gap-2.5 sm:grid-cols-4">
{["Bar", "Roastery", "Shop", "Marketing"].map((t) => (
<span key={t} className="rounded-[14px] bg-muted px-3.5 py-7 font-semibold">{t}</span>
))}
</div>
),
},
{
label: "Advice",
title: "Advice",
body: (
<ol className="grid gap-2">
{["An order flow for beans", "Opening hours per location", "Reels on the homepage"].map((t) => (
<li key={t} className="rounded-[12px] bg-muted px-4 py-3.5">{t}</li>
))}
</ol>
),
},
]}
/>
);
}