Skip to main content
Clever Ops

Credentials Bar

The trust strip that closes trade jobs, license number, insurance, years on the tools, and review score in one sturdy row. Mono where it's data, bold where it's pride.

Preview & code

Loading Credentials Bar preview

Installation

pnpm dlx shadcn@latest add @cleverui/trade-cred-bar

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

Usage

tsx
import { TradeCredBar } from '@/components/blocks/trade-cred-bar'
Exampletsx
import { BadgeCheck, Shield, Star } from 'lucide-react'
import { TradeCredBar } from '@/components/blocks/trade-cred-bar'

export default function TradeCredBarDemo() {
  return (
    <div className="mx-auto max-w-6xl px-4 py-6 sm:px-6">
      <TradeCredBar
        years={18}
        yearsLabel="Years on the tools"
        items={[
          {
            icon: BadgeCheck,
            label: 'Plumbing licence',
            value: 'L-38291',
            mono: true,
          },
          {
            icon: Shield,
            label: 'Public liability',
            value: '$20M covered',
          },
          {
            icon: Star,
            label: 'Google reviews',
            value: '4.9 · 214 reviews',
          },
          {
            label: 'ABN',
            value: '51 824 753 556',
            mono: true,
          },
        ]}
      />
    </div>
  )
}

API reference

TradeCredBar accepts the following props.

PropTypeDefaultDescription
items*TradeCredItem[]
yearsnumberyears in trade, rendered as a counting stat
yearsLabelstring'Years on the tools'

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

Referenced types

Typestsx
export interface TradeCredItem {
  icon?: LucideIcon
  label: string
  value: string
  /** mono:true for reference data like license numbers */
  mono?: boolean
}

Frequently asked questions

How do I install the Credentials Bar component?

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

Credentials Bar uses motion and lucide-react on top of React and Tailwind CSS. You don't need to install them manually, the shadcn CLI resolves and installs npm dependencies automatically when you add the component.

Can I theme Credentials Bar 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