Skip to content
ProLifetime access for $199, paid once, every future release included
Truffle UI

Brand Icon

FreeNew

The marks of 33 social networks, review sites and messengers as inline SVG, in brand color or monochrome.

Installation

pnpm dlx shadcn@latest add @viewport/brand-icon

First time? Add the @viewport registry to components.json. Setup takes one minute.

Usage

The code behind the preview above.

brand-icon-demo.tsx
import { BrandIcon, brandName, type Brand } from "@/components/viewport/brand-icon";

const brands: Brand[] = ["google", "facebook", "instagram", "x", "linkedin", "youtube", "tiktok", "pinterest", "whatsapp", "telegram", "messenger", "yelp", "tripadvisor", "airbnb", "amazon", "trustpilot", "apple", "googleplay", "etsy", "ebay", "viber", "line", "tumblr", "vimeo", "rss", "paypal", "spotify", "discord", "github", "threads", "reddit", "snapchat", "twitch"];

export default function BrandIconDemo() {
  return (
    <ul className="grid w-full max-w-xl grid-cols-4 gap-2 sm:grid-cols-6 md:grid-cols-7">
      {brands.map((brand) => (
        <li key={brand} className="flex flex-col items-center gap-2 rounded-xl border border-border bg-card px-1 py-3">
          <BrandIcon brand={brand} size={24} />
          <span className="max-w-full truncate text-[11px] text-muted-foreground">{brandName(brand)}</span>
        </li>
      ))}
    </ul>
  );
}

Props

PropTypeDefault
brand*Brand

Which mark to draw.

—
tone"color" | "mono"

`color` paints the brand's own colors; `mono` inherits the text color.

"color"
sizenumber

Width and height in pixels.

16
titlestring

An accessible name. Leave it out when a visible label sits next to the mark.

—
classNamestring—

Accessibility

  • Hidden from screen readers unless you pass a `title`, so a visible label is not read twice.
  • Black marks follow the text color, so they stay visible in dark theme.
  • Server component with no client JavaScript and no requests.