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/uiUsage
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
srcstring- The file. A missing or broken one falls back to the label's initial.
labelrequiredstring- 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.
classstring
| 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 |