Featured Product Showcase
A split-layout marketing showcase for a single hero product: image, price, rating, description, and feature list. Meant for a homepage or landing-page spotlight, not the live product/cart page.
Docs
Installation
A real shadcn registry command, not a copy-paste stand-in: it fetches this block plus its button dependencies and any missing npm packages, and installs them straight into your project.
npx shadcn add https://staaarter.com/r/featured-product-showcase.jsonPrefer not to use the CLI? Copy the source from the Code toggle above into src/components/blocks/ecommerce/ecommerce12.tsx instead.
Usage
The file also exports ecommerce12Demo, the exact props behind the preview above. Spread it to get a working section in one line, then replace it with your own data.
import { Ecommerce12, ecommerce12Demo } from "@/components/blocks/ecommerce/ecommerce12"; export default function Page() { return <Ecommerce12 {...ecommerce12Demo} />; }
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| name | string | none | Product name. |
| price | string | none | Current price, pre-formatted, e.g. "$179.00". |
| originalPrice | string | none | Optional pre-discount price, rendered with a strikethrough. |
| rating | number | none | Optional 0-5 rating; the star row only renders when set. |
| description | string | none | Short marketing description. |
| features | string[] | [] | Bullet list of feature highlights, each prefixed with a check icon. |
| image | { src: string; alt: string } | none | Product photo; falls back to a placeholder icon when omitted. |
| imagePosition | "left" | "right" | "left" | Which side the image column renders on. |
| className | string | none | Extra classes for the outer section element. |
Behavior notes
- Fully static marketing block: "Add to cart" has no click handler here, this is a showcase section, not the live cart.
- imagePosition just reorders the two grid columns at the lg breakpoint via lg:order-2; below that breakpoint the image always stacks above the copy.
- originalPrice and rating are both optional and independently omitted; the strikethrough price and star row each only render when their prop is set.
- image falls back to a centered Package icon on a muted background when omitted, rather than a broken image.
More Ecommerce Blocks
View all →wishlist-manager
Wishlist Manager
Saved-items list with stock-status badges, move-to-cart and remove actions, and a real empty state.
product-information-tabs
Product Information Tabs
Tabbed product details with Description, Features, Specifications, Reviews, and Shipping panels.
collection-showcase-grid
Collection Showcase Grid
A large featured-collection hero card alongside a grid of smaller supporting collection tiles.
shop-by-brand-grid
Shop by Brand Grid
A grid of bordered brand tiles with a wordmark-style name, product count, and a hover affordance.
sale-countdown-timer
Sale Countdown Timer
A live days/hours/minutes/seconds countdown in default, compact, or full-width banner layouts.
gift-card-redemption-form
Gift Card Redemption Form
A code-entry form that validates against a fixed list of demo gift cards and shows a real success or error state.