Skip to content
h v3.13.3
Search the docs
Find a component, section or page.

Mark

A brand logo at glyph size that falls back to the initial.

  • Brightwell Legal
  • Atelier Morel
  • Harbor Dental
  • Kestrel Surveys

Installation

pnpm add @heyramzi/ui

Usage

import { Mark } from "@heyramzi/ui/components/mark";

Keyboard and accessibility

  • The logo is decorative, with an empty alt. Put the name in text beside it, or name the control it sits in.
  • When the image is missing or broken, the fallback initial is hidden from screen readers too.

API reference

src string
The file. A missing or broken one falls back to the label's initial.
label required string
Read for the fallback letter. The mark itself is decorative.
shape "square" | "circle"
Default "square"
`circle` crops a photograph to a disc, `square` fits a logo whole.
class string
Prop Type Default
src

The file. A missing or broken one falls back to the label's initial.

string
label required

Read for the fallback letter. The mark itself is decorative.

string
shape

`circle` crops a photograph to a disc, `square` fits a logo whole.

"square" | "circle" "square"
class string