ComponentsEditorial

Logo

Logo cloud parts: a labelled list laid out as a centred grid, a single wrapping baseline, two columns or muted tiles. Each logo takes an img, svg or text wordmark at three sizes, with a greyscale muted variant.

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/logo
npx shadcn add @01orbital/logo
yarn shadcn add @01orbital/logo
bunx --bun shadcn add @01orbital/logo

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/logo.tsx, as source you own and edit.

Usage

import { Logo, LogoGroup } from "@/components/editorial/logo"

const COPY = {
  label: "Trusted by",
  zobeide: "Zobeide",
  octavia: "Octavia",
  ersilia: "Ersilia",
}

// A wordmark drawn as an svg, a mark beside text, and plain text.
export default function LogoDemo() {
  return (
    <LogoGroup aria-label={COPY.label} className="max-w-3xl">
      <Logo>
        <svg viewBox="0 0 120 32" role="img" aria-label={COPY.zobeide}>
          <circle cx="16" cy="16" r="12" fill="currentColor" />
          <rect
            x="36"
            y="12"
            width="76"
            height="8"
            rx="4"
            fill="currentColor"
          />
        </svg>
      </Logo>
      <Logo>
        <svg viewBox="0 0 32 32" aria-hidden="true">
          <path d="M16 2 30 30H2Z" fill="currentColor" />
        </svg>
        {COPY.octavia}
      </Logo>
      <Logo>{COPY.ersilia}</Logo>
    </LogoGroup>
  )
}

Anatomy

Logo is built from 2 parts. In the example they nest like this:

LogoGroup
└─ Logo
  • LogoGroup: A list of customer or partner logos, rendered as a <ul>. Put a Logo inside for each one. It requires a name for screen readers: pass aria-label or aria-labelledby.
  • Logo: One logo inside LogoGroup, rendered as an <li>: an <img>, an inline <svg> or the company's name as text. An <img> or <svg> placed directly inside is the wordmark: as tall as size and never wider than its cell. Give an <img> its alt text.

API reference

LogoGroup

A list of customer or partner logos, rendered as a <ul>. Put a Logo inside for each one. It requires a name for screen readers: pass aria-label or aria-labelledby.

grid (the default) centers each logo in a cell and sets them all on one row from the xl breakpoint. wrap lets them flow along one baseline. columns sets two start-aligned columns. tiles sets each logo on its own shaded tile, with a mark stacked above the name. grid and columns drop to one column on screens narrower than 360px.

Prop

Type

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

One logo inside LogoGroup, rendered as an <li>: an <img>, an inline <svg> or the company's name as text. An <img> or <svg> placed directly inside is the wordmark: as tall as size and never wider than its cell. Give an <img> its alt text.

For a mark beside the name, add an <svg aria-hidden="true"> next to the text; it sizes to 1.2em. muted turns the text down to 80% opacity and an <img> to greyscale at 80% opacity.

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.

No other registry pieces.

On this page