Docs
Installation
A real shadcn registry command, not a copy-paste stand-in: it fetches this block plus its dependencies and any missing npm packages, and installs them straight into your project.
npx shadcn add https://staaarter.com/r/daily-specials-chalkboard.jsonPrefer not to use the CLI? Copy the source from the Code toggle above into src/components/blocks/food/food5.tsx instead.
Usage
The file also exports food5Demo, 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 { Food5, food5Demo } from "@/components/blocks/food/food5"; export default function Page() { return <Food5 {...food5Demo} />; }
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| dayLabel | string | "Monday" | Small uppercase day label above the heading. |
| heading | ReactNode | "Today's Specials" | Chalkboard heading. |
| updatedLabel | string | "Updated this morning" | Static freshness caption under the list; a fixed string prop, not a live clock. |
| specials | SpecialItem[] | [] | Rotating special items listed on the board. |
| className | string | none | Extra classes for the outer section element. |
Types
type SpecialItem = { name: string; description: string; price: string; };
Behavior notes
- The chalkboard card deliberately breaks from semantic Tailwind tokens (hardcoded neutral-900/neutral-950 colors) to force a consistent dark, chalk-on-slate look regardless of site theme, the same one-off exception pattern used by the Auth category's terminal-window block.
- updatedLabel is a plain string prop with a static default; it is never computed from Date.now()/new Date() so the block renders identically on every build and every card thumbnail.
- Corner accents are purely decorative border fragments with aria-hidden set; this is a plain server component with no interactivity.
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.
Dietary Filter Menu
Interactive menu with dietary filter buttons (vegetarian, vegan, gluten-free) and allergen warnings.
Set Menu Pricing Cards
Three-tier pricing cards for group dining with included items, minimum guests, and booking buttons.