# Service Mark

> A connected service's mark: its brand logo from the icon library (brandGmail, brandTesla …), your own logo, or a monogram for a service without a logo ("KS" for a local nursery).

Component · Connectors · Pro kit · [Live page](https://ui.twentyfirst.media/pro/components/ServiceMark/)

A connected service's mark: its brand logo from the icon library (`brandGmail`, `brandTesla` …),
your own logo, or a monogram for a service without a logo ("KS" for a local nursery). An optional
dot shows the connection state, and screen readers hear it in words ("N26, Needs attention").

- Sizes `sm` (24px), `md` (36px) and `lg` (48px); any tint.
- `logo` takes an `<img>` or `<svg>` you are allowed to use; `monogram` overrides the letters.
- `decorative` hides it from screen readers when the name is written next to it.

## Example

```tsx
import { Panel, ServiceMark } from "@twentyfirstmedia/pro";
import "./_connectors";

export default function Preview() {
  return (
    <Panel
      title="Service marks"
      subtitle="Brand logo, your own logo or a monogram"
      style={{ maxWidth: 620 }}
    >
      <div className="tf-row" style={{ gap: 12 }}>
        <ServiceMark name="Gmail" icon="brandGmail" status="connected" />
        <ServiceMark name="Spotify" icon="brandSpotify" status="syncing" />
        <ServiceMark name="N26" icon="brandN26" status="error" />
        <ServiceMark name="tado°" icon="brandTado" status="paused" />
        <ServiceMark name="Apple Health" icon="brandApplehealth" />
        <ServiceMark name="Scalable Capital" icon="brandScalable" />
        <ServiceMark name="Hole19" icon="brandHole19" />
        <ServiceMark name="Kita Sonnenschein" tint="mint" />
        <ServiceMark name="Phone calls" icon="phone" tint="sky" />
      </div>
      <div className="tf-row" style={{ gap: 12, alignItems: "center" }}>
        <ServiceMark name="Tesla" icon="brandTesla" size="sm" />
        <ServiceMark name="Tesla" icon="brandTesla" />
        <ServiceMark name="Tesla" icon="brandTesla" size="lg" status="connected" />
        <ServiceMark name="Wolt" icon="brandWolt" size="sm" />
        <ServiceMark name="Wolt" icon="brandWolt" />
        <ServiceMark name="Wolt" icon="brandWolt" size="lg" />
      </div>
    </Panel>
  );
}
```

## Props

### ServiceMark

| Prop | Type | Notes |
| --- | --- | --- |
| `name` | `string` | The service's name: the accessible name, and the monogram when there is no icon or logo. |
| `icon?` | `IconName` | A brand logo (`brandGmail` …) or a line icon. |
| `logo?` | `ReactNode` | Your own logo (an `<img>` or `<svg>`) instead of the icon. |
| `monogram?` | `string` | Letters for the monogram (default: the initials of `name`). |
| `size?` | `"sm" \| "md" \| "lg"` | 24, 36 (default) or 48 px. |
| `tint?` | `Tint \| "plain"` |  |
| `status?` | `ServiceState` | A dot in the corner with the state in words for screen readers. |
| `decorative?` | `boolean` | Hidden from screen readers when the name is written next to it. |
| `className?` | `string` | Extra class on the root element. |
| `style?` | `CSSProperties` | Inline style on the root element. |

### Panel

| Prop | Type | Notes |
| --- | --- | --- |
| `side?` | `boolean` |  |
| `title?` | `string` |  |
| `subtitle?` | `string` |  |
| `action?` | `ReactNode` |  |
| `children?` | `ReactNode` |  |
| `surface?` | `Surface` | `"glass"`: translucent glass over what is behind (maps, 3D, video, photos); `"solid"` opts out inside a glass `UIProvider`. |
| `className?` | `string` | Extra class on the root element. |
| `style?` | `CSSProperties` | Inline style on the root element. |
