# Logo mark (wordmark)

> Simple geometric glyph plus a company name, used as a stand-in brand logo in navbars, footers and logo clouds.

- Kind: ui · Category: Layout and media · Interactivity: none
- Install: `npx shadcn@latest add @haze/logo-mark`
- File: `src/components/haze/ui/logo-mark.astro`
- npm dependencies: none
- Registry dependencies: @haze/utils
- Docs page: https://hazeui.com/ui/logo-mark

## Use when
- Demo or fictional brands in prototypes
- A text wordmark is acceptable for the real brand

## Avoid when
- You have an official logo file; use it with alt text instead

## Props

| Name | Type | Default | Required | Description |
|---|---|---|---|---|
| name | `string` |  | yes | Company name shown as text. |
| shape | `"circle" \| "square" \| "triangle" \| "diamond" \| "haze"` | "circle" | no | Glyph shape. |
| class | `string` |  | no | Extra classes; set a text color to recolor the glyph. |

## Accessibility
- The glyph is aria-hidden; the company name is real text.

## Agent prompts

### Install and use

Install the Haze UI component "Logo mark (wordmark)" with `npx shadcn@latest add @haze/logo-mark`. If components.json has no "@haze" registry yet, add "registries": { "@haze": "https://hazeui.com/r/{name}.json" }. If src/styles/haze.css does not exist yet, run `npx shadcn@latest add @haze/theme` once and import it from the global stylesheet after Tailwind. The CLI stops at an overwrite question when a Haze file already exists and differs, even with --yes, and then installs nothing after it: read its output. If the user has not edited their Haze files, re-run with --overwrite to take the registry versions; if they have, ask them before overwriting. Then import LogoMark from "@/components/haze/ui/logo-mark.astro" (or the relative path) and render it where it fits the page. Keep Haze token classes (bg-background, text-muted-foreground, border-border...) and never hardcode colors. Docs: https://hazeui.com/ui/logo-mark.md

### Customize with real content

Adapt the Haze logo-mark ui for our product. Replace the demo values of these props with our real content: name, shape, class. Keep the layout, the heading level rules and these accessibility details: The glyph is aria-hidden; the company name is real text. Do not add raw color classes; use the Haze tokens.

### Choose the right block

Before using logo-mark, check it fits: use it when demo or fictional brands in prototypes; a text wordmark is acceptable for the real brand. Avoid it when you have an official logo file; use it with alt text instead.

## Example requests that should lead here
- Add placeholder company logos for the logo cloud

## Source

```astro
---
import { cn } from "../../../lib/haze/utils";

interface Props {
  /** Fictional company name shown as a wordmark. */
  name: string;
  shape?: "circle" | "square" | "triangle" | "diamond" | "haze";
  class?: string;
}

const { name, shape = "circle", class: className } = Astro.props;
---

<span class={cn("inline-flex items-center gap-2 align-middle text-base font-medium tracking-tight text-muted-foreground", className)}>
  {
    shape === "haze" ? (
      <svg viewBox="0 0 84 52" class="h-4 w-auto shrink-0" aria-hidden="true" fill="currentColor">
        <path d="M0 0H30V10A12 12 0 0 0 33.51 18.48A25 25 0 0 0 26.38 22.48A20 20 0 0 1 22 10V8H8V44H22V42A20 20 0 0 1 42 22A12 12 0 0 0 54 10V0H84V52H54V42A12 12 0 0 0 50.49 33.52A25 25 0 0 0 57.62 29.52A20 20 0 0 1 62 42V44H76V8H62V10A20 20 0 0 1 42 30A12 12 0 0 0 30 42V52H0Z" />
      </svg>
    ) : (
      <svg viewBox="0 0 20 20" class="size-5 shrink-0" aria-hidden="true" fill="currentColor">
        {shape === "circle" && <circle cx="10" cy="10" r="8" />}
        {shape === "square" && <rect x="3" y="3" width="14" height="14" rx="3" />}
        {shape === "triangle" && <path d="M10 2 18 17H2Z" />}
        {shape === "diamond" && <path d="M10 1 19 10 10 19 1 10Z" />}
      </svg>
    )
  }
  {name}
</span>
```
