Skip to main content
Clever Ops

Study Mode Compare

Online, on-campus, and hybrid study modes compared dimension by dimension, with a same-certificate reassurance line. A React and Tailwind comparison block for education sites.

Preview & code

Loading Study Mode Compare preview

Installation

pnpm dlx shadcn@latest add @cleverui/study-mode-compare

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

Usage

tsx
import { StudyModeCompare } from '@/components/blocks/study-mode-compare'
Exampletsx
import { StudyModeCompare } from '@/components/blocks/study-mode-compare'

export default function StudyModeCompareDemo() {
  return (
    <div className="mx-auto w-full">
      <StudyModeCompare
        heading="Choose how you study"
        intro="Three rhythms, one course, pick the one your week can actually keep."
        modes={[
          {
            name: 'Online',
            tagline: 'Learn from anywhere, live sessions recorded',
            ctaLabel: 'Start online',
            href: '#online',
          },
          {
            name: 'On campus',
            tagline: 'Studio days in the CBD with your cohort',
            ctaLabel: 'Start on campus',
            href: '#campus',
          },
          {
            name: 'Hybrid',
            tagline: 'Two studio evenings, the rest at your pace',
            ctaLabel: 'Start hybrid',
            href: '#hybrid',
          },
        ]}
        rows={[
          {
            label: 'Weekly commitment',
            values: ['6–8 hrs/week', '12–14 hrs/week', '8–10 hrs/week'],
          },
          {
            label: 'Live classes',
            values: [
              '2 evenings, recorded',
              '3 studio days',
              '2 evenings on campus',
            ],
          },
          {
            label: 'Mentorship',
            values: [
              'Async reviews in 48 hrs',
              'Desk-side feedback',
              'Mix of async and desk-side',
            ],
          },
          {
            label: 'Tuition',
            values: ['$450/month', '$520/month', '$480/month'],
          },
          {
            label: 'Certificate',
            values: [
              'Same certificate',
              'Same certificate',
              'Same certificate',
            ],
          },
        ]}
        parityNote="Same curriculum, same instructors, same certificate, only the rhythm changes."
      />
    </div>
  )
}

API reference

StudyModeCompare accepts the following props.

PropTypeDefaultDescription
headingstring'Choose how you study'
introstringone encouraging plain sentence under the heading
modes*StudyMode[]
rows*StudyModeRow[]
parityNotestringsame-certificate reassurance under the grid
chooseLabelstring'Start this way'fallback CTA label when a mode omits its own

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

Referenced types

Typestsx
export interface StudyMode {
  name: string
  /** one plain line under the name */
  tagline?: string
  ctaLabel?: string
  href?: string
}

export interface StudyModeRow {
  label: string
  /** preformatted values aligned by index with modes */
  values: string[]
}

Frequently asked questions

How do I install the Study Mode Compare component?

Register the @cleverui registry in your components.json ("@cleverui": "https://cleverops.com.au/r/{name}.json"), then run `npx shadcn@latest add @cleverui/study-mode-compare`. 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 Study Mode Compare require?

Study Mode Compare 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 Study Mode Compare 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