Stable at full height
Stable at full height and quiet. Assembly took twenty minutes.
Cookie settings
Your license after an unlock and your light or dark mode are stored because the site needs them. Google Analytics is optional: it only runs if you accept, and you can change your choice at any time under Cookie settings in the footer. Privacy policy
A customer review in a card: author, stars and date, an optional title, the text, photos and the shop's reply, with a Helpful button and a Report link.
Stable at full height
Stable at full height and quiet. Assembly took twenty minutes.
This review was reported and is waiting for a moderator.
Stable at full height
Stable at full height and quiet. Assembly took twenty minutes.
Stable at full height
Stable at full height and quiet. Assembly took twenty minutes.
This review was reported and is waiting for a moderator.
Stable at full height
Stable at full height and quiet. Assembly took twenty minutes.
Stable at full height
Stable at full height and quiet. Assembly took twenty minutes.
Thank you, Priya. The cable tray ships in the same box from this week.
This review was reported and is waiting for a moderator.
Stable at full height
Stable at full height and quiet. Assembly took twenty minutes.
Thank you, Priya. The cable tray ships in the same box from this week.
Review Card comes with WunderUI Core and Pro, in the package from your plan. See the plans.
Then import what you need:
import { ReviewCard, ReviewCardProps } from "@wunderui/react"Then use it:
import * as React from "react"
import { ReviewCard } from "@wunderui/react"
export function ProductReview() {
const [helpful, setHelpful] = React.useState(false)
return (
<ReviewCard
author={{ name: "Priya Raman", color: "indigo" }}
verified
rating={5}
date="Nov 2, 2026"
title="Stable at full height"
helpfulCount={helpful ? 25 : 24}
helpful={helpful}
onHelpful={() => setHelpful((value) => !value)}
>
Stable at full height and quiet. Assembly took twenty minutes.
</ReviewCard>
)
}Expected result: You should see a card for Priya Raman with a green Verified purchase badge, five stars, a title, the text and a Helpful button. Pressing the button turns it indigo and makes the count 25.
The text is the content. A title, photos and the shop's reply are optional and sit between the header and footer in that order; photos are 72 px tiles with an 8 px radius and no alt text.
Stable at full height and quiet. Assembly took twenty minutes.
Stable at full height
Stable at full height and quiet. Assembly took twenty minutes.
Stable at full height
Stable at full height and quiet. Assembly took twenty minutes.
Stable at full height
Stable at full height and quiet. Assembly took twenty minutes.
Thank you, Priya. The cable tray ships in the same box from this week.
The author is a person: a name, plus a photo or a colour for tinted initials. Initials come from the name unless you pass them, and Verified adds a Verified purchase badge beside the name.
Stable at full height
Stable at full height and quiet. Assembly took twenty minutes.
Stable at full height
Stable at full height and quiet. Assembly took twenty minutes.
Stable at full height
Stable at full height and quiet. Assembly took twenty minutes.
The rating is drawn as stars, rounded to whole stars, next to the date. The card does not print the number.
Stable at full height
Stable at full height and quiet. Assembly took twenty minutes.
Good value, slow presets
Good frame at a fair price. The memory presets are slow to respond.
Arrived damaged
One leg arrived scratched and the top had a dent. I sent it back.
Helpful, Report and the menu button exist only when you pass their handlers, and the helpful count is the text on the left of the footer. The card holds no state: you own the vote and the count.
Stable at full height
Stable at full height and quiet. Assembly took twenty minutes.
Stable at full height
Stable at full height and quiet. Assembly took twenty minutes.
Stable at full height
Stable at full height and quiet. Assembly took twenty minutes.
Stable at full height
Stable at full height and quiet. Assembly took twenty minutes.
Flagged puts a moderation note above the review and turns the border yellow. A long text wraps and the card grows; nothing is cut off.
Stable at full height
Stable at full height and quiet. Assembly took twenty minutes.
This review was reported and is waiting for a moderator.
Stable at full height
Stable at full height and quiet. Assembly took twenty minutes.
Stable at full height, quiet, and easy to assemble alone
Stable at full height and quiet. Assembly took twenty minutes with one person, and the frame has not wobbled in three months of daily use. The memory presets are slow to respond, but they hold their position. The cable tray was missing from the box, and support sent a replacement within the week.
The card is an article and has no focus stop of its own. Only the buttons inside are focusable, in this order: the menu button, Helpful, Report, each only when you pass its handler.
What the card does with its props, its optional parts and its handlers. It is controlled: it holds no state of its own.
The parts of the review card, numbered in the figure, with every optional part shown at once. The parts you do not pass are not drawn.
Stable at full height, quiet, and easy to assemble alone
Stable at full height and quiet. Assembly took twenty minutes with one person, and the frame has not wobbled in three months.
Thank you, Priya. A new tray is on its way.
An article with a hairline border, a 16 px radius and 16 px padding, with 12 px between its sections. It takes no other attributes and is not named, so give a list of reviews a label.
The author as tinted initials, or as a photo with the initials as the fallback.
The author name in 12 px semibold text.
A green Verified purchase badge beside the name.
The stars from the rating, then the date in 11 px tertiary text. The number itself is not printed.
A ghost icon button with three dots, named Review menu. It only calls its handler; the card does not open a menu itself.
The title in 14 px semibold text, above the text.
The review text in a 12 px paragraph. Use plain text or inline markup only, because it sits in a p element.
One 72 px square tile with an 8 px radius for every photo address. The row wraps when it is too wide, and the tiles have no alt text and no focus.
A box with 8 px corners and a 1 px border on the page background. It holds the sender in semibold, the date after a dot and the reply text below, with an optional logo before the name.
The line N people found this helpful on the left of the footer. It says 1 person for one.
A plain small button that reads Helpful, and Helpful with a check mark and an indigo border once the vote is set. It carries the pressed state.
A text button in the link colour that only calls its handler.
Set the verified flag only for confirmed purchases; it adds a Verified purchase badge.
Pass the helpful handler with the helpful state to toggle the button, and the helpful count for the count text.
Own the vote. Keep the helpful state and the count in your own state, add one to the count while helpful is true, and send the vote to your server in the handler.
Open your own menu or sheet from the menu handler, and your own report form from the report handler. Both are plain click handlers.
Give a list of reviews a label, for example a section named Reviews. Every card is an unnamed article, and every card has a link that reads only Report.
Use the flagged state only for a moderator or the author, with a sentence that says why the review is held. Customers do not need to see it.
Don't put block elements in the review text. It is wrapped in a paragraph, so pass plain text or inline markup.
Don't rely on the photos to carry information. They have no alt text, so say what they show in the text.
Don't show the helpful button with a count that never changes. A button that does nothing is worse than no button, so leave the handler out when voting is off.
Review Card is one component and takes only the props below, so an id, aria-label or data attribute cannot be passed to it. The author is a person with a name and optional initials, photo and colour.
An article with a hairline border, a 16 px radius and 16 px padding, with 12 px between its sections. It takes no other attributes and is not named, so give a list of reviews a label.
| Prop | Type | Default | Description |
|---|---|---|---|
| author required | Person | — | The person who wrote the review: (required), to replace the two letters taken from the name, for a photo, and for the tint of the initials, orange by default. Required. |
| rating required | number | — | The rating, drawn as Stars. It is rounded to a whole star, and the number is not printed. Required. |
| date required | ReactNode | — | The date of the review, shown after the stars. Any node, so you format it. Required. |
| children required | ReactNode | — | The text of the review, in a 12 px paragraph. Plain text or inline markup only. Required. |
| title | ReactNode | — | A short headline above the text, in 14 px semibold. Nothing is drawn without it. |
| verified | boolean | — | Adds a green Verified purchase badge beside the name. Set it only for a confirmed purchase. |
| photos | string[] | — | A list of image addresses, one 72 px tile each, under the text. The tiles have no alt text. |
| reply | { from: ReactNode; date?: ReactNode; text: ReactNode; logo?: ReactNode } | — | The answer of the shop: (the name), , and optionally and , which is drawn in front of the name. The box sits between the photos and the footer. |
| flagged | ReactNode | — | A moderation note in a yellow box above the title. It also turns the border of the card yellow. |
| helpfulCount | number | — | The number in the line on the left of the footer. The line is left out without it. |
| helpful | boolean | — | Whether the current reader has voted. It sets and the check mark of the Helpful button. Controlled: you own it. |
| onHelpful | () => void | — | Adds the Helpful button and is called when it is pressed. Flip and update in it. |
| onReport | () => void | — | Adds the Report link and is called when it is pressed. Open your own report form in it. |
| onMenu | () => void | — | Adds a three-dot button named Review menu at the end of the header and is called when it is pressed. The card draws no menu; open yours from the handler. |
| className | string | — | Added to the . Use it for the width and the margins. |
Give your coding assistant the Markdown reference instead of screenshots.
get_component("review-card")The full library index for assistants is at /llms.txt.