# Logo

Brand logos for lead sources and integrations, exactly as the Refined page draws them: 20 px marks and the 32 px LEAP CRM lockup. Each is named by its brand for screen readers, or decorative beside text that already says it.

- Beta: ready to use; its API can still change in a minor release.
- Category: Brand

```tsx
import { Logo } from "@leap-crm/design-system";
```

## Best practices

- Do: Use it to show a lead source or an integration, like Google or Outlook, by the CRM's slug in `name`.
- Do: Set `decorative` beside text that already names the brand, like "Connected to Outlook", so screen readers don't hear it twice.
- Do: Size it with a height class and let the width follow: 16 px beside small text, 24 px in a tile.
- Don't: Set `decorative` on a logo that stands alone, like the only mark in a lead source column. Its name is then the only way a screen reader learns the source.
- Don't: Recolour a logo or draw a brand from a generic icon. Logos show exactly as the Refined page draws them; add a missing brand to the library.

## Related

- [Firm Pilot Mark](./firm-pilot-mark.md)
- [App Header](./app-header.md)

## Examples

What the examples import:

```tsx
import { Logo, logoNames } from "@leap-crm/design-system";
```

Scaffolding the examples call. It lives in the docs page, not in the library:

```tsx
const marks = logoNames.filter(name => name !== "leap-crm");
```

### Brand marks

name takes the CRM's lead-source and integration slugs. Outlook is a touch wider than square, as drawn.

```tsx
<div className="grid grid-cols-[repeat(auto-fill,minmax(120px,1fr))] gap-4">
  {marks.map(name => (
    <div key={name} className="text-small flex items-center gap-2">
      <Logo name={name} decorative />
      <span className="text-neutral-text-secondary">{name}</span>
    </div>
  ))}
</div>
```

### LEAP CRM

The lockup, 32 px tall. Size it with a height class.

```tsx
<div className="flex flex-col items-start gap-4">
  <Logo name="leap-crm" />
  <Logo name="leap-crm" className="h-11" />
</div>
```

### Sizes

A height class sizes any mark; the width follows. 16 px beside small text, 24 px in a tile.

```tsx
<div className="flex items-end gap-4">
  <Logo name="google" className="h-4" />
  <Logo name="google" />
  <Logo name="google" className="h-6" />
  <Logo name="google" className="h-11" />
</div>
```

## Props

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `name` (required) | `(typeof logoNames)[number]` |  | Which logo, by the CRM's lead-source slug, like "google" or "leap-crm". |
| `label` | `string` |  | What a screen reader hears. Defaults to the brand's name. |
| `decorative` | `boolean` | `false` | Beside text that already names the brand: hidden from screen readers. |
| `className` | `string` |  | Sizes the logo: brand marks default to 20 px square, the LEAP CRM lockup to 32 px tall. |
