Skip to content
TrademarkTrademark
Docs
Components

Logo

Updated: July 31, 2025
View on GitHub

The Logo component is used to display brand logos with consistent styling and sizing. It supports displaying both an icon and a wordmark, either separately or together.

Sizes

The Logo component comes in different sizes to accommodate various use cases.

Icon

Display only the icon part of the logo.

Wordmark

Display only the wordmark part of the logo.

Text wordmark

For a brand with no wordmark file, text sets the name in the heading font at the logo's size, after the icon if there is one. A link is then named by the text.

Monogram

For a brand with no designed icon yet, monogram draws a favicon-style mark at the icon's height: a bare solid shape with no tile behind it, in the strongest text colour, so it is black in light mode and white in dark mode. monogram picks one of a few geometric shapes from the name, so a product always gets the same mark. A string draws those characters instead, as a heavy glyph. Beside text the mark is decorative. When the real mark exists, pass it as icon: an icon always replaces the monogram.

The Logo component can function as a link when provided with an href property.

Brand

The brand prop provides a copy option for allowing the icon and wordmark to be separately copied as an svg to the clipboard on right click through a context menu. The url option displays a link to your brand page when provided.

API reference

Type
Default
className
string—
size
Scale of whichever parts are shown.
xllmsxs
m
style
React.CSSProperties—
icon
The mark. Takes one source, or { light, dark } for a per-theme pair.
string{ light: string; dark: string; }
—
wordmark
The wordmark. Same shape as icon.
string{ light: string; dark: string; }
—
text
A text wordmark, set in the heading font at the logo's size.
string—
monogram
booleanstring
—
href
Makes it a link, usually home.
string—
dark
Render only in the dark theme.
boolean—
light
Render only in the light theme.
boolean—
brand
Turns the logo into a brand menu: copy the assets as SVG, and link to a brand page.
{ copy?: boolean; url?: string }—
…and every React.AnchorHTMLAttributes propinherited—
Edit this page on GitHub