# Marker: Variants

> `default` is a quiet note, `separator` centers it between two hairlines, and `border` underlines it like a section heading.

Example: https://hextaui.com/docs/marker/examples/variants
Component docs: https://hextaui.com/docs/marker.md

## Add this example

```bash
npx shadcn@latest add https://hextaui.com/r/marker-variants.json
```

This adds `components/examples/marker/variants.tsx` with the Marker component and the HextaUI theme tokens.

## Source

```tsx title="components/examples/marker/variants.tsx"
import { IconInfoCircle } from "@tabler/icons-react"

import { Marker, MarkerContent, MarkerIcon } from "@/components/ui/marker"

export function MarkerVariants() {
  return (
    <div className="flex w-full max-w-md flex-col gap-6">
      <Marker>
        <MarkerIcon>
          <IconInfoCircle />
        </MarkerIcon>
        <MarkerContent>Default: an icon and a short note.</MarkerContent>
      </Marker>
      <Marker variant="separator">
        <MarkerContent>Separator</MarkerContent>
      </Marker>
      <Marker variant="border">
        <MarkerContent>Border: a heading for the section below</MarkerContent>
      </Marker>
    </div>
  )
}
```

## Props in this example

### Marker

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `variant` | `"default" \| "separator" \| "border"` | `"default"` |  |

## More Marker examples

- [Sticky dates](https://hextaui.com/docs/marker/examples/sticky.md)
- [Relative dates](https://hextaui.com/docs/marker/examples/time.md)
- [Activity](https://hextaui.com/docs/marker/examples/events.md)
- [Long content](https://hextaui.com/docs/marker/examples/long-content.md)
- [Right to left](https://hextaui.com/docs/marker/examples/rtl.md)
