HextaUI

Marker: Right to left

Icons and text follow the reading direction.

اليوم
أضافت ميرا جون إلى المحادثة
import { IconUserPlus } from "@tabler/icons-react"

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

export function MarkerRtl() {
  return (
    <div dir="rtl" className="flex w-full max-w-md flex-col gap-4">
      <Marker variant="separator">
        <MarkerContent>اليوم</MarkerContent>
      </Marker>
      <Marker>
        <MarkerIcon>
          <IconUserPlus />
        </MarkerIcon>
        <MarkerContent>أضافت ميرا جون إلى المحادثة</MarkerContent>
      </Marker>
    </div>
  )
}

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

pnpm dlx shadcn@latest add https://hextaui.com/r/marker-rtl.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.