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/fine-dining-hero.jsonPrefer not to use the CLI? Copy the source from the Code toggle above into src/components/blocks/food/food13.tsx instead.
Usage
The file also exports food13Demo, 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 { Food13, food13Demo } from "@/components/blocks/food/food13"; export default function Page() { return <Food13 {...food13Demo} />; }
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| eyebrow | string | undefined | Small label flanked by decorative lines, e.g. "Est. 2011". |
| michelinStars | number | 0 | Number of filled star icons to render, clamped to 0-3. |
| heading | ReactNode | none | Hero headline. |
| description | string | undefined | Supporting paragraph under the headline. |
| awards | string[] | [] | Award/press mentions listed in a row below the buttons, separated by a top border. |
| buttons | ButtonItem[] | [] | CTA buttons under the description. |
| className | string | none | Extra classes for the outer section element. |
Types
interface ButtonItem { label: string; href?: string; variant?: "default" | "secondary" | "outline" | "ghost" | "link" | "destructive"; }
Behavior notes
- Purely presentational: no interactivity. This is a page-section hero (py-16 sm:py-32), not a full-viewport min-h-screen screen, to match this repo's section-block convention.
- michelinStars is clamped to the 0-3 range via Math.min/Math.max; passing 0 or omitting the prop hides the star row entirely.
- Every button defaults to variant "default" unless it sets its own variant; buttons without an href render as plain, non-navigating buttons.
- The awards row and its top border only render when the array is non-empty.
More Food Blocks
View all →Loyalty Rewards Program
Four-tier rewards program with points earning steps, benefit lists, and app store download buttons.
Gift Card Shop
Gift card purchase interface with preset amounts, custom input, digital/physical delivery options, and live preview.
Online Ordering Hub
Delivery platform cards with logos, fees, and delivery times alongside pickup info with address and phone.
Expandable Menu Accordion
Collapsible menu items revealing full images, calorie counts, protein info, and allergen badges.
Daily Specials Chalkboard
Dark-themed chalkboard-style menu with decorative corners, day labels, and timestamp.
Dietary Filter Menu
Interactive menu with dietary filter buttons (vegetarian, vegan, gluten-free) and allergen warnings.