# Mark

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

Section: Components / Data display
Page: https://ui.heyramzi.com/components/mark
Import path: `@heyramzi/ui/components/mark`

## Import

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

## Demo

```svelte
<script lang="ts">
	import { Mark } from "@heyramzi/ui/components/mark";
	import atelier from "#lib/demos/marks/atelier.svg?url";
	import brightwell from "#lib/demos/marks/brightwell.svg?url";

	const marks = [
		{ label: "Brightwell Legal", src: brightwell },
		{ label: "Atelier Morel", src: atelier },
		{ label: "Harbor Dental", src: "data:image/png;base64,AA==" },
		{ label: "Kestrel Surveys" },
	];
</script>

<div class="flex flex-col gap-6">
	<ul class="flex flex-col gap-2">
		{#each marks as m (m.label)}
			<li class="flex items-center gap-2 text-sm">
				<Mark src={m.src} label={m.label} />
				{m.label}
			</li>
		{/each}
	</ul>
	<div class="flex items-center gap-3">
		{#each marks as m (m.label)}
			<Mark src={m.src} label={m.label} shape="circle" class="size-9 text-sm" />
		{/each}
	</div>
</div>
```

## API

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