Skip to main content
Clever Ops

Wine List

The wine list set as its own document, regions as serif small-cap sections, vintage and glass/bottle prices in aligned tabular columns, one sommelier's pick carrying the keyline.

Preview & code

Loading Wine List preview

Installation

pnpm dlx shadcn@latest add @cleverui/wine-list-page

Requires the @cleverui registry in your components.json, a one-off, two-line setup.

Usage

tsx
import { WineListPage } from '@/components/blocks/wine-list-page'
Exampletsx
import { WineListPage } from '@/components/blocks/wine-list-page'

export default function WineListPageDemo() {
  return (
    <WineListPage
      eyebrow="Cellar"
      heading="Wine list"
      glassLabel="Glass"
      bottleLabel="Bottle"
      note="Corkage $35 · Vintages subject to availability · Half-bottles on request"
      regions={[
        {
          region: 'Champagne & sparkling',
          note: 'By the glass or for the table.',
          wines: [
            {
              name: 'Brut Nature',
              producer: 'Marie Courtin, Côte des Bar',
              vintage: 'NV',
              glass: '28',
              bottle: '145',
            },
            {
              name: 'Blanc de Blancs',
              producer: 'Agrapart & Fils, Avize',
              vintage: '2017',
              bottle: '210',
              pick: true,
            },
          ],
        },
        {
          region: 'White',
          wines: [
            {
              name: 'Chablis Premier Cru Vaillons',
              producer: 'Domaine William Fèvre',
              vintage: '2021',
              glass: '18',
              bottle: '92',
            },
            {
              name: 'Riesling Trocken',
              producer: 'Keller, Rheinhessen',
              vintage: '2022',
              glass: '16',
              bottle: '78',
            },
            {
              name: 'Chardonnay',
              producer: 'Tolpuddle, Tasmania',
              vintage: '2020',
              bottle: '118',
            },
          ],
        },
        {
          region: 'Red',
          note: 'Decanted on request.',
          wines: [
            {
              name: 'Barolo Cascina Francia',
              producer: 'Giacomo Conterno',
              vintage: '2016',
              bottle: '320',
            },
            {
              name: 'Pinot Noir',
              producer: 'Felton Road, Bannockburn',
              vintage: '2021',
              glass: '19',
              bottle: '96',
            },
            {
              name: 'Côte-Rôtie La Landonne',
              producer: 'Guigal',
              vintage: '2015',
              bottle: '285',
            },
            {
              name: 'Cabernet Sauvignon',
              producer: 'Cullen Diana Madeline, Margaret River',
              vintage: '2019',
              glass: '22',
              bottle: '140',
            },
          ],
        },
      ]}
    />
  )
}

API reference

WineListPage accepts the following props.

PropTypeDefaultDescription
headingstring'Wine list'
eyebrowstringspaced small-caps serif label
regions*WineListRegion[]document sections, regions with wines
glassLabelstring'Glass'
bottleLabelstring'Bottle'
notestringmono footnote (corkage, vintages subject to availability)

…plus everything from React.HTMLAttributes<HTMLElement>: className, event handlers, aria attributes and the rest pass straight through.

Referenced types

Typestsx
export interface WineListRegion {
  region: string
  note?: string
  wines: WineListEntry[]
}

export interface WineListEntry {
  name: string
  producer?: string
  vintage?: string
  glass?: string
  bottle: string
  /** at most ONE pick:true across the entire list */
  pick?: boolean
}

Frequently asked questions

How do I install the Wine List component?

Register the @cleverui registry in your components.json ("@cleverui": "https://cleverops.com.au/r/{name}.json"), then run `npx shadcn@latest add @cleverui/wine-list-page`. The shadcn CLI copies the source into your project, you own the code from that point. You can also copy the source directly from this page.

What dependencies does Wine List require?

Wine List uses motion on top of React and Tailwind CSS. You don't need to install it manually, the shadcn CLI resolves and installs npm dependencies automatically when you add the component.

Can I theme Wine List to match my brand?

Yes. The component is styled entirely with Tailwind utilities over standard design tokens (primary, background, muted, border), so it inherits your existing shadcn/ui theme automatically. Change your CSS variables and the component follows, no source edits needed for palette, radius, or fonts.

Want this built for you?

CleverUI is built by the Clever Ops web team. If you'd rather ship a hand-coded, fast, custom website than assemble one, we build them for Australian businesses every week.

Explore web development services