ComponentsEditorial

Eyebrow

Short label set above a heading. Default is a 14px medium line in muted ink, cased as written; icon puts a 16px icon before the words; mono is a 12px uppercase Geist Mono label. Pulls in the Geist Mono font item.

Open the preview in a new tab

The source comes with full access.

One payment of $149 opens the source right here and lets the CLI install every paid component, with lifetime updates.

Installation

pnpm dlx shadcn add @01orbital/eyebrow
npx shadcn add @01orbital/eyebrow
yarn shadcn add @01orbital/eyebrow
bunx --bun shadcn add @01orbital/eyebrow

Part of the 01orbital library. With a license, put ORBITAL_TOKEN in .env.local and the same command installs it (licensed install, pricing).

It lands at components/editorial/eyebrow.tsx, as source you own and edit.

The example also imports @phosphor-icons/react from npm, which the install does not add:

pnpm add @phosphor-icons/react
npm install @phosphor-icons/react
yarn add @phosphor-icons/react
bun add @phosphor-icons/react

Usage

import { ShieldCheckIcon } from "@phosphor-icons/react/dist/ssr"

import { Eyebrow } from "@/components/editorial/eyebrow"

const COPY = {
  default: "Built for scale",
  icon: "Security",
  mono: "Selected work",
}

export default function EyebrowDemo() {
  return (
    <div className="grid w-full max-w-2xl place-items-center gap-8 p-6">
      <Eyebrow>{COPY.default}</Eyebrow>
      <Eyebrow variant="icon">
        <ShieldCheckIcon aria-hidden="true" />
        {COPY.icon}
      </Eyebrow>
      <Eyebrow variant="mono">{COPY.mono}</Eyebrow>
    </div>
  )
}

API reference

Prop

Type

It also accepts the props of the Base UI part it wraps, and the HTML attributes of the element it renders.

Dependencies

npm: @base-ui/react, class-variance-authority, cn. The CLI installs them for you.

Registry pieces it installs with it:

  • font-geist-mono

On this page