Industry sections

Menu with sections and a cursor photo

A restaurant menu: sections as tabs, dishes as a list with a dotted leader to the price, ingredients and “spicy”, “veg”, “chef” tags. A pill under the active tab slides to the chosen one; switching a section cascades the dishes in; hovering a dish floats its photo by the cursor.

React + Tailwind, shadcn-compatible: press “Copy for AI” and your Cursor or Claude Code agent installs it with the shadcn CLI.

What you can change

  • sections: sections, notes, dishes with text, price, tags and photo
  • eyebrow, title, lede, fullLabel, fullHref
  • accent and background, tone

A link for your AI agent: preview, code and instructions.

Preview

1440pxHost theme
Menu with sections and a cursor photo — A restaurant menu: sections as tabs, dishes as a list with a dotted leader to the price, ingredients and “spicy”, “veg”, “chef” tags. A pill under the active tab slides to the chosen one; switching a section cascades the dishes in; hovering a dish floats its photo by the cursor.

Use it with AI

  1. 1. Copy the link.
  2. 2. Write to your agent in your own words and drop the link into the sentence.
  3. 3. The agent opens the link and installs the component from the registry.
AI
1Pick it here

put this on the home page as the hero:

https://vibeui.club/c/restaurant-003?lang=en&theme=dark

2Paste into the chat
3Get it in your project

Not sure where to paste it? Step-by-step guide

Show the full instructions

What the link says, spelled out. Use it when your agent cannot open links — paste this text instead.

Loading…

How to use

<Restaurant003
  title="What we cook this autumn"
  sections={[
    { title: "Starters", note: "We bake the bread ourselves", dishes: [
      { name: "Venison tartare", text: "juniper, yolk, rye crisps", price: "€14", tags: ["chef"], image: "/photos/dish-02.webp" },
    ] },
  ]}
  fullLabel="Full menu as PDF"
  fullHref="/menu.pdf"
/>

A sample call. The agent installs the component itself from the registry via the “Copy for AI” link.

Settings

Theme
tone · default: auto
Title
title · default: What we cook this autumn
Link
fullLabel · default: Full menu as PDF
Accent
accent · default: theme colour
Background
background · default: theme colour

Used in scenarios

FAQ

How do I add Menu with sections and a cursor photo with Cursor or Claude Code?
Press “Copy for AI” on this page and paste it into your agent's chat. The instruction contains the shadcn CLI install command, the dependencies and what to keep, so the agent installs this exact component instead of recreating a lookalike.
What does Menu with sections and a cursor photo depend on?
No npm packages beyond React and Tailwind CSS.
What can I change in Menu with sections and a cursor photo?
Adapt: sections: sections, notes, dishes with text, price, tags and photo; eyebrow, title, lede, fullLabel, fullHref; accent and background, tone. Keep as installed: the imports from @/components/vibeui/ — do not inline their code into the block or swap in your own; the parts receive props only; the dotted leader between name and price — the classic restaurant line; the pill sliding under the active tab and the cascading dish appearance on a section change.
Is Menu with sections and a cursor photo free?
The preview is open to everyone; the source is available with a PRO subscription.

For developers

npx shadcn@latest add https://vibeui.club/r/pro/restaurant-003.json

This command needs a signed link: sign in and open “Component source” below — it issues a working link valid for 30 minutes. All install options

Technical notes

A composite block: imports from @/components/vibeui/ — the install command brings them along with the block. The block owns the layout and its own text, passes the parts props only and leaves their --vibeui-<name>-* palettes alone. One file, zero npm dependencies, “use client” for tabs and the photo. Tabs are role=tab with aria-selected; under the active one a pill (li data-part=pill) whose position and size are measured in useLayoutEffect from the button's offsetLeft/offsetWidth and written straight into the pill's style (no state), sliding via transform/width over .5s, a ResizeObserver re-measures on resize. The list remounts with a new key on a section change — @keyframes with a --n×60ms delay. A dish row: a serif name, the leader is flex:1 with a dotted bottom border, the price nowrap. Tags get data-kind by the word start (veg/hot/chef) and their colour. The photo is one position:fixed <img>; cursor coordinates go into the --x/--y CSS variables on onMouseMove without re-rendering; hidden on devices without hover. Two dish columns from 48rem (container query). Palette --vibeui-restaurant-003-* is neutral: ink and paper via light-dark(), the site colours come through the accent, ink and background props; Playfair Display and Manrope via <link precedence> from Google Fonts with system fallbacks. tone pins the scheme, accent, ink and background override colours.

Tags

  • restaurant
  • cafe
  • bar
  • food
  • menu
  • dining
  • tabs
  • dishes
  • price
  • leader
  • composite
Component source

The same file your agent installs. Here in case you would rather copy it by hand.

Loading…