Sale
Sale and promotion blocks for shadcn/ui. Seasonal sale heroes, countdown banners, discount tiles, promo code callouts, and clearance grids. Built for shadcn/ui.
A full-width inverted sale hero for shadcn/ui with a destructive "Black Week" Badge, an oversized "Up to 40% off" heading, a lead paragraph, two Buttons and a small end-time line with a clock icon. Centred and fully responsive. Built for seasonal landing pages and campaign takeovers.
A bordered sale strip for shadcn/ui with a live countdown driven by useEffect that ticks every second toward a fixed end date. Days, hours, minutes and seconds sit in muted tabular-nums boxes next to the sale copy and a shop Button. The row stacks vertically on mobile. Perfect above product grids during a promotion.
Four category discount tiles for shadcn/ui in a two-column grid that widens to four columns. Each tile layers a dark overlay over a product photo with an oversized "-20%" style deal, a category name and a short line, and scales the image on hover. A heading and "View everything on sale" link sit above.
A centred muted panel for shadcn/ui offering 10% off a first order. The WELCOME10 code sits in a dashed box beside a Copy Button whose icon swaps to a Check through useState, followed by a newsletter Input and Subscribe Button and a terms line. Great for welcome offers on the home page or in the footer area.
A clearance grid for shadcn/ui with a "Last chance" heading and an "Ends in 3 days" Badge. Eight product cards show square photos, destructive discount Badges, sale prices beside strike-through originals in tabular-nums and "Only 2 left" stock lines on selected items. Two columns on mobile, four on desktop.
A split sale banner for shadcn/ui inside a rounded, bordered frame with a thin "Free returns on sale items" top bar. A lifestyle photo fills the left half while the right half is a primary-coloured panel with a "Summer clearance" heading, three check bullets and a secondary Button. Stacks photo over panel on mobile.
Frequently asked questions
What the Sale blocks include, how to install them, and which ones are free.
6 Sale blocks for shadcn/ui:
- Full-bleed Black Week sale hero
sale-01(free) - Countdown banner with live timer
sale-02 - Photo discount tiles by category
sale-03 - Promo code callout with copy button
sale-04 - Last-chance clearance product grid
sale-05 - Split clearance banner with photo
sale-06
Set up the shadcn/ui Pro registry in your project once, as described in Installation, then run npx shadcn@latest add @shadcnpro/base/sale-01. The block lands in components/blocks/sale-01.tsx together with the shadcn/ui components and npm packages it uses. sale-01 is free, so it installs without a license key.
Yes. Full-bleed Black Week sale hero (sale-01) is free: the code is shown on this page and it installs without a license key. The other 5 need a shadcn/ui Pro plan, which starts with a 7-day free trial.
Yes. Every Sale block uses semantic classes such as bg-background, text-muted-foreground and bg-primary, so it picks up your colors, radius and fonts and switches with dark mode. It is responsive from desktop to mobile; the width controls on the preview above let you check.
Yes. Every Sale block has a matching design in the shadcn/ui Pro Figma kit, so designers and developers work from the same layout. The /generate-code Agent Skill installs the block from the registry when it finds it in a Figma frame, instead of rebuilding it.
Yes. With the shadcn/ui Pro MCP server connected to Cursor, Claude Code or VS Code, describe what you need, for example "Use shadcnpro to add a full-bleed Black Week sale hero." The agent finds the block with search_blocks, reads its install command and installs it after you approve.