Skip to main content
Clever Ops

Core Sample

Scroll drills a core sample through labeled strata, the bit sinks, the extraction tube fills layer by layer, and a depth log counts to the primary seam. React and Tailwind tokens, no assets.

Preview & code

Loading Core Sample preview

Installation

pnpm dlx shadcn@latest add @cleverui/scroll-core-sample

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

Usage

tsx
import { ScrollCoreSample } from '@/components/blocks/scroll-core-sample'
Exampletsx
import { ScrollCoreSample } from '@/components/blocks/scroll-core-sample'

export default function ScrollCoreSampleDemo() {
  return (
    <ScrollCoreSample
      eyebrow="Survey · Ridge 14-C"
      heading="Drill the log. Extract the seam."
      body="Four strata under the basalt cap, loess, siltstone, a basalt sill, then the graphite seam that pays. Scroll sinks the bit; the extraction tube fills in reverse order of depth."
      depthCaption="DEPTH"
      scrubLength={3}
      strata={[
        {
          label: 'Loess overburden',
          body: 'Wind-laid silt, 0–12 m',
        },
        {
          label: 'Siltstone lens',
          body: 'Laminated, 12–24 m',
        },
        {
          label: 'Basalt sill',
          body: 'Jointed dark flow, 24–36 m',
        },
        {
          label: 'Graphite seam',
          body: 'Primary target, 36–48 m',
        },
      ]}
    />
  )
}

API reference

ScrollCoreSample accepts the following props.

PropTypeDefaultDescription
eyebrowstring
heading*string
bodystringshort standfirst beside the stage
strata*CoreStratum[]3–5 strata top to bottom; the last is the payoff seam and carries the accent
depthCaptionstring'DEPTH'mono prefix on the depth log readout
scrubLengthnumber3section height as a multiple of the viewport

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

Referenced types

Typestsx
export interface CoreStratum {
  label: string
  body?: string
}

Frequently asked questions

How do I install the Core Sample component?

Register the @cleverui registry in your components.json ("@cleverui": "https://cleverops.com.au/r/{name}.json"), then run `npx shadcn@latest add @cleverui/scroll-core-sample`. 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 Core Sample require?

Core Sample 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 Core Sample 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