# Marker

> A labelled divider, such as a date between messages.

- Category: [App & chat](https://tarve.dev/docs.md#chat)
- Import: `import { Marker } from "@tarve/core";`
- Props type: `MarkerProps`
- Source: [packages/core/src/chat-controls.ts:87](https://github.com/omarcosr/tarve/blob/main/packages/core/src/chat-controls.ts#L87)

## Usage

```tsx title="Marker.tsx"
import { Column, Marker, Text } from "@tarve/core";

<Column gap={12}>
  <Text>Yesterday's message</Text>
  <Marker label="Today" />
  <Text>Today's message</Text>
</Column>
```

## Props

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `label` | `string` | — |  |

## Common props

Shared by every component (descriptions: https://tarve.dev/docs.md#common-props): `children`, `class`, `className`, `highlight`, `id`, `key`, `motionFrom`, `onHighlight`, `onPaste`, `onPointerLeave`, `onPointerMove`, `onSize`, `onTransitionEnd`, `rovingGroup`, `style`.

Previous: [MessageScroller](https://tarve.dev/docs/components/MessageScroller.md) · Next: [Attachment](https://tarve.dev/docs/components/Attachment.md)

---

Tarve v0.13.8 · HTML version: https://tarve.dev/docs/components/Marker · Index for agents: https://tarve.dev/llms.txt
