HextaUI

Marker: Variants

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

Default: an icon and a short note.
Separator
Border: a heading for the section below
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>
  )
}

This adds the example as components/examples/marker/variants.tsx, together with the Marker component and the HextaUI theme tokens it needs.

pnpm dlx shadcn@latest add https://hextaui.com/r/marker-variants.json

To add only the component, follow the Marker installation.

Props in this example

The Marker props this example sets, from the API reference.

PropTypeDefault
variant
"default" | "separator" | "border""default"

Every prop is in the Marker API reference.

See them all, with keyboard support and accessibility notes, on the Marker page.