Skip to main content
Clever Ops

Farm Provenance Index

Farm-to-table suppliers index for React, producers set as a serif sourcing document with place and distance in mono. Tailwind-tokened provenance, no logos.

Preview & code

Loading Farm Provenance Index preview

Installation

pnpm dlx shadcn@latest add @cleverui/farm-provenance-index

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

Usage

tsx
import { FarmProvenanceIndex } from '@/components/blocks/farm-provenance-index'
Exampletsx
import { FarmProvenanceIndex } from '@/components/blocks/farm-provenance-index'

export default function FarmProvenanceIndexDemo() {
  return (
    <FarmProvenanceIndex
      eyebrow="Sourcing"
      heading="Where it comes from"
      intro="Everything on the menu has a first name."
      stat={{ label: 'Average paddock to pass', value: '74 km' }}
      note="Ask your waiter where tonight's fish came in from."
      groups={[
        {
          category: 'Vegetables',
          producers: [
            {
              name: 'Riverbend Farm',
              place: 'Barham',
              distance: '96 km',
              supplies: 'mushrooms, the good butter lettuce, spring radish',
            },
            {
              name: 'Elm Hollow Plots',
              place: 'Castlemaine',
              distance: '112 km',
              supplies: 'heirloom tomatoes, soft herbs, bitter chicories',
            },
          ],
        },
        {
          category: 'Seafood',
          producers: [
            {
              name: 'Bayline Oysters',
              place: 'Portarlington',
              distance: '68 km',
              supplies: 'Pacifics on the half-shell, the occasional mussel',
            },
            {
              name: 'North Jetty Fish',
              place: 'Queenscliff',
              distance: '74 km',
              supplies: 'flathead, snapper when the weather allows',
            },
          ],
        },
        {
          category: 'Dairy',
          producers: [
            {
              name: 'Harrow Creek Dairy',
              place: 'Colac',
              distance: '148 km',
              supplies: 'cultured butter, thick yoghurt, soft curds',
            },
            {
              name: 'Wattle Ridge Creamery',
              place: 'Timboon',
              distance: '210 km',
              supplies: 'aged cheddar, double cream for the sweets',
            },
          ],
        },
        {
          category: 'Pantry',
          producers: [
            {
              name: 'North Slope Apiary',
              place: 'Daylesford',
              distance: '98 km',
              supplies: 'wildflower honey, beeswax for the kitchen',
            },
            {
              name: 'Copper Coast Salt',
              place: 'Geelong',
              distance: '54 km',
              supplies: 'flake salt, smoked finishing salt',
            },
          ],
        },
      ]}
    />
  )
}

API reference

FarmProvenanceIndex accepts the following props.

PropTypeDefaultDescription
eyebrowstring'Sourcing'
headingstring'Where it comes from'
introstringone italic serif line
groups*FarmProvenanceGroup[]3–5 categories (Vegetables, Seafood, Dairy)
stat{ label: string; value: string }closing sourcing stat, value carries the primary accent
notestringquiet closing line

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

Referenced types

Typestsx
export interface FarmProvenanceGroup {
  category: string
  producers: FarmProducer[]
}

export interface FarmProducer {
  name: string
  place: string
  /** preformatted distance, e.g. "96 km" */
  distance?: string
  /** what they send, italic line */
  supplies: string
}

Frequently asked questions

How do I install the Farm Provenance Index component?

Register the @cleverui registry in your components.json ("@cleverui": "https://cleverops.com.au/r/{name}.json"), then run `npx shadcn@latest add @cleverui/farm-provenance-index`. 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 Farm Provenance Index require?

Farm Provenance Index 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 Farm Provenance Index 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