# Marker

Displays an inline status, system note, bordered row, or labeled separator in a conversation.

Section: Blocks / Chat
Page: https://ui.heyramzi.com/components/marker
Import path: `@heyramzi/ui/shadcn/marker`

## Import

```ts
import * as Marker from "@heyramzi/ui/shadcn/marker";
import { Spinner } from "@heyramzi/ui/shadcn/spinner";
```

## Usage

```svelte
<Marker.Root>
  <Marker.Content>Switched to a new branch</Marker.Content>
</Marker.Root>
<Marker.Root variant="separator">
  <Marker.Content>Conversation compacted</Marker.Content>
</Marker.Root>
```

## Demo

```svelte
<script lang="ts">
	import { GitBranch, MagnifyingGlass } from "phosphor-svelte";
	import * as Marker from "@heyramzi/ui/shadcn/marker";
	import { Spinner } from "@heyramzi/ui/shadcn/spinner";
</script>

<div class="flex w-full max-w-sm flex-col gap-8 py-12">
	<Marker.Root>
		<Marker.Icon>
			<GitBranch aria-hidden="true" />
		</Marker.Icon>
		<Marker.Content>Switched to a new branch</Marker.Content>
	</Marker.Root>
	<Marker.Root role="status">
		<Marker.Icon>
			<Spinner />
		</Marker.Icon>
		<Marker.Content class="shimmer">Thinking...</Marker.Content>
	</Marker.Root>
	<Marker.Root variant="separator">
		<Marker.Content>Conversation compacted</Marker.Content>
	</Marker.Root>
	<Marker.Root>
		<Marker.Icon>
			<MagnifyingGlass aria-hidden="true" />
		</Marker.Icon>
		<Marker.Content>Explored 4 files</Marker.Content>
	</Marker.Root>
</div>
```

## API

### Marker.Root

| Prop | Type | Default | Notes |
| --- | --- | --- | --- |
| `variant` | `"default"` \| `"separator"` \| `"border"` | `"default"` |  |
| `child` | `Snippet<[{ props: Record<string, unknown> }]>` |  |  |
| `ref` | `HTMLDivElement \| null` | `null` | bindable |
| `class` | `string` |  |  |

Every prop of `HTMLAttributes<HTMLDivElement>` from `svelte/elements`.

### Marker.Icon

| Prop | Type | Default | Notes |
| --- | --- | --- | --- |
| `ref` | `HTMLSpanElement \| null` | `null` | bindable |
| `class` | `string` |  |  |
| `children` | `Snippet` |  |  |

Every prop of `HTMLAttributes<HTMLSpanElement>` from `svelte/elements`.

### Marker.Content

| Prop | Type | Default | Notes |
| --- | --- | --- | --- |
| `ref` | `HTMLSpanElement \| null` | `null` | bindable |
| `class` | `string` |  |  |
| `children` | `Snippet` |  |  |

Every prop of `HTMLAttributes<HTMLSpanElement>` from `svelte/elements`.
