BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/stackzero/review-01-block

review-01-block

stackzero/review-01-block
FreeBlock

stackzero publishes no description for this item.

Install it

npx shadcn@latest add https://ui.stackzero.co/r/review-01-block.json

Source

/components/commerce-ui/blocks/reviews/review-01.tsxui.stackzero.co/r/review-01-block.json
1import StarRating from "@/components/commerce-ui/star-rating-basic";
2interface Review_01Props {
3 rating?: number;
4 reviewDate?: string;
5 reviewText?: string;
6 avatarUrl?: string;
7 reviewerName?: string;
8 reviewerTitle?: string;
9}
10
11function Review_01({
12 avatarUrl = "https://raw.githubusercontent.com/stackzero-labs/ui/refs/heads/main/public/placeholders/user-07.jpg",
13 rating = 4.0,
14 reviewDate = "Feb 12, 2025",
15 reviewerName = "Adam Smith",
16 reviewerTitle = "CEO ACME Inc.",
17 reviewText = "The product is great, I'm very satisfied with the quality and the price. I would recommend it to anyone looking for a good product or service.",
18}: Review_01Props = {}) {
19 return (
20 <>
21 <div className="flex max-w-2xl flex-col gap-4 rounded-lg border px-6 py-4">
22 <div className="flex flex-row flex-wrap items-center justify-between gap-2">
23 <div className="flex flex-row items-center gap-2">
24 <StarRating value={rating} maxStars={5} iconSize={18} readOnly />
25 <p className="text-sm">({rating}/5)</p>
26 </div>
27
28 <p className="text-muted-foreground text-sm">{reviewDate}</p>
29 </div>
30
31 <div>
32 <p className="text-justify">{reviewText}</p>
33 </div>
34
35 <div className="flex flex-row items-end gap-4">
36 <img
37 src={avatarUrl}
38 alt="reviewer avatar"
39 className="relative inline-block h-12 w-12 !rounded-full object-cover object-center"
40 />
41 <div>
42 <p className="text-sm font-semibold">{reviewerName}</p>
43 <p className="font-base text-muted-foreground text-sm">
44 {reviewerTitle}
45 </p>
46 </div>
47 </div>
48 </div>
49 </>
50 );
51}
52
53export default Review_01;
54export type { Review_01Props };

What it pulls in

Other registry items

  • https://ui.stackzero.co/r/star-rating-basic.json

Files it writes

  • @/components/commerce-ui/blocks/reviews/review-01.tsx

Facts

Registry
stackzero
Type
registry:block
Access
Free
Files written
1
Licence
the repository states none
First indexed
2026-08-01
Last confirmed
today

Go to the source

ui.stackzero.co stackzero-labs/ui on GitHub Raw registry item This item as JSON

More from stackzero

All 112 items
Same registry, same kind — the ones you would have found next
ComponentRegistryKindAccessInstallsCommand
address-01-blockaddress-01-blockstackzeroBlocksFree4 deps
address-02-blockaddress-02-blockstackzeroBlocksFree4 deps
address-03-blockaddress-03-blockstackzeroBlocksFree4 deps
banner-01-blockbanner-01-blockstackzeroBlocksFreeno deps
banner-02-blockbanner-02-blockstackzeroBlocksFreeno deps
banner-03-blockbanner-03-blockstackzeroBlocksFreeno deps
banner-04-blockbanner-04-blockstackzeroBlocksFreeno deps
banner-05-blockbanner-05-blockstackzeroBlocksFreeno deps
BlockDex

Built by

Kynth Studio

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

BlockDex

BlockDex

Built by

Kynth Studio

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

BlockDex

BlockDex

Built by

Kynth Studio

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

BlockDex