# Coachmark

> A guided-tour step that spotlights an element already on the page.

```tsx title="hero.tsx"
import { Button } from '@langgenius/dify-ui/button'
import {
  Coachmark,
  CoachmarkActions,
  CoachmarkArrow,
  CoachmarkClose,
  CoachmarkDescription,
  CoachmarkPopup,
  CoachmarkPortal,
  CoachmarkPositioner,
  CoachmarkSpotlight,
  CoachmarkStepLabel,
  CoachmarkTitle,
} from '@langgenius/dify-ui/coachmark'
import {
  Meter,
  MeterIndicator,
  MeterLabel,
  MeterTrack,
  MeterValue,
} from '@langgenius/dify-ui/meter'
import * as React from 'react'

type StepId = 'keys' | 'invite' | 'usage'

type TourStep = {
  id: StepId
  title: string
  description: string
  side: 'bottom' | 'top'
}

const steps: TourStep[] = [
  {
    id: 'keys',
    title: 'Manage API keys',
    description: 'Create a key for each environment and revoke the ones you no longer use.',
    side: 'bottom',
  },
  {
    id: 'invite',
    title: 'Invite your team',
    description: 'Members you invite can build and publish apps in this workspace.',
    side: 'bottom',
  },
  {
    id: 'usage',
    title: 'Watch your usage',
    description: 'Message credits reset on the first day of every month.',
    side: 'top',
  },
]

export function CoachmarkHeroDemo() {
  const [index, setIndex] = React.useState<number | null>(null)
  const [targets, setTargets] = React.useState<Partial<Record<StepId, HTMLElement | null>>>({})
  const [targetRefs] = React.useState(() => ({
    keys: (element: HTMLElement | null) => setTargets((current) => ({ ...current, keys: element })),
    invite: (element: HTMLElement | null) =>
      setTargets((current) => ({ ...current, invite: element })),
    usage: (element: HTMLElement | null) =>
      setTargets((current) => ({ ...current, usage: element })),
  }))
  const actionRef = React.useRef<HTMLButtonElement>(null)
  const step = index === null ? undefined : steps[index]

  return (
    <div className="flex w-full max-w-lg flex-col gap-3">
      <div className="flex flex-wrap items-center justify-between gap-2">
        <p className="system-md-semibold text-text-primary">Workspace settings</p>
        <Button onClick={() => setIndex(0)}>Start tour</Button>
      </div>
      <section className="flex flex-wrap items-center justify-between gap-3 rounded-xl border border-divider-subtle bg-background-section p-4">
        <div className="min-w-0">
          <p className="system-sm-semibold text-text-primary">Members</p>
          <p className="system-xs-regular text-text-tertiary tabular-nums">3 of 10 seats used</p>
        </div>
        <div className="flex flex-wrap items-center gap-2">
          <Button ref={targetRefs.keys}>API keys</Button>
          <Button ref={targetRefs.invite} variant="primary">
            Invite members
          </Button>
        </div>
      </section>
      <section
        ref={targetRefs.usage}
        className="flex flex-col gap-2.5 rounded-xl border border-divider-subtle bg-background-section p-4"
      >
        <div className="flex items-center justify-between gap-2">
          <p className="system-sm-semibold text-text-primary">Usage this month</p>
          <span className="system-xs-regular text-text-tertiary">Resets May 1</span>
        </div>
        <Meter
          value={1240}
          max={5000}
          format={{ maximumFractionDigits: 0 }}
          getAriaValueText={(formattedValue) => `${formattedValue} of 5,000 message credits`}
          className="flex flex-col gap-1.5"
        >
          <div className="flex items-center justify-between gap-2">
            <MeterLabel>Message credits</MeterLabel>
            <MeterValue className="tabular-nums">
              {(formattedValue) => `${formattedValue} / 5,000`}
            </MeterValue>
          </div>
          <MeterTrack>
            <MeterIndicator />
          </MeterTrack>
        </Meter>
      </section>
      <Coachmark
        open={step !== undefined}
        onOpenChange={() => setIndex(null)}
        target={step ? (targets[step.id] ?? null) : null}
        payload={step && index !== null ? { index, step } : undefined}
      >
        {({ payload: { index: shownIndex, step: shown } }) => (
          <CoachmarkPortal>
            <CoachmarkSpotlight />
            <CoachmarkPositioner side={shown.side}>
              <CoachmarkPopup initialFocus={actionRef}>
                <CoachmarkArrow />
                <CoachmarkTitle>
                  <CoachmarkStepLabel>
                    Step {shownIndex + 1} of {steps.length}
                  </CoachmarkStepLabel>
                  {shown.title}
                </CoachmarkTitle>
                <CoachmarkDescription>{shown.description}</CoachmarkDescription>
                <CoachmarkActions>
                  <CoachmarkClose>Skip tour</CoachmarkClose>
                  <Button
                    ref={actionRef}
                    variant="primary"
                    className="min-w-20"
                    onClick={() => setIndex(shownIndex + 1 < steps.length ? shownIndex + 1 : null)}
                  >
                    {shownIndex + 1 < steps.length ? 'Next' : 'Done'}
                  </Button>
                </CoachmarkActions>
              </CoachmarkPopup>
            </CoachmarkPositioner>
          </CoachmarkPortal>
        )}
      </Coachmark>
    </div>
  )
}
```

## Usage guidelines

- Use `Coachmark` to walk users through controls that already exist on the page. Use `Popover` for explanatory content anchored to a trigger, and `Dialog` for a task that does not point at a page element.
- The caller owns the tour. Control `open`, pass the current `target` as an element or a selector that matches one element, and advance the step in your own state. Coachmark has no Trigger: a tour starts from product logic or from a button that sets the step.
- Pass the step data as `payload` and read it from the render-function child. While the next target mounts, scrolls or animates, Coachmark keeps the previous payload in place and marks the popup `data-pending` and `aria-busy`; it also keeps the last payload through the close transition. Pass `payload={undefined}` when closed or when the next step is not ready, instead of a fallback value or unmounting `Coachmark`.
- `onOpenChange` reports only the close part and `Escape`. Clicking the dimmed page never dismisses a coachmark, so every step needs a `CoachmarkClose`, which also keeps focus trapped in the popup with the default `modal`.
- `onStepShown` runs each time a step becomes visible, including when the tour returns after stepping aside for another modal. Use it for step analytics or for marking a tour as seen.
- Name the popup with `CoachmarkTitle`. Put `CoachmarkStepLabel` inside the title so the progress is part of the dialog's name, and keep the copy in `CoachmarkDescription`.
- Point `initialFocus` at the primary action on walkthrough steps. Leave it out on a step the user completes on the target, so the popup takes focus and its copy is read before the user tabs to the target. When focus stays on the same action across steps, Coachmark announces the new copy through a polite live region.
- `CoachmarkPositioner` accepts logical sides only: `top`, `bottom`, `inline-start` and `inline-end`. The spotlight, the page blocker and the popup are fixed to the viewport, so they follow a target inside a scroll container; when the target scrolls away, the popup stays reachable so the close action remains available.
- When another modal covers the coachmark, it steps aside and comes back once its target is reachable again.

## Anatomy

```tsx
import {
  Coachmark,
  CoachmarkActions,
  CoachmarkArrow,
  CoachmarkClose,
  CoachmarkDescription,
  CoachmarkPopup,
  CoachmarkPortal,
  CoachmarkPositioner,
  CoachmarkSpotlight,
  CoachmarkStepLabel,
  CoachmarkTitle,
} from '@langgenius/dify-ui/coachmark'
```

```tsx
<Coachmark>
  <CoachmarkPortal>
    <CoachmarkSpotlight />
    <CoachmarkPositioner>
      <CoachmarkPopup>
        <CoachmarkArrow />
        <CoachmarkTitle>
          <CoachmarkStepLabel />
        </CoachmarkTitle>
        <CoachmarkDescription />
        <CoachmarkActions>
          <CoachmarkClose />
        </CoachmarkActions>
      </CoachmarkPopup>
    </CoachmarkPositioner>
  </CoachmarkPortal>
</Coachmark>
```

`CoachmarkSpotlight` dims the page around the target. `CoachmarkPositioner` also renders the layer that blocks the rest of the page, so the page stays blocked without a spotlight.

## Examples

### Letting the user act on the target

With `modal="allow-target"`, the user completes the step on the target itself. The rest of the page stays blocked for pointer, keyboard and assistive technology, and `Tab` moves between the popup and the target. Close the coachmark from the target's own change handler.

```tsx title="allow-target.tsx"
import { Button } from '@langgenius/dify-ui/button'
import {
  Coachmark,
  CoachmarkActions,
  CoachmarkArrow,
  CoachmarkClose,
  CoachmarkDescription,
  CoachmarkPopup,
  CoachmarkPortal,
  CoachmarkPositioner,
  CoachmarkSpotlight,
  CoachmarkTitle,
} from '@langgenius/dify-ui/coachmark'
import { Field, FieldDescription, FieldLabel } from '@langgenius/dify-ui/field'
import { StatusDot } from '@langgenius/dify-ui/status-dot'
import { Switch } from '@langgenius/dify-ui/switch'
import * as React from 'react'

export function CoachmarkAllowTargetDemo() {
  const [open, setOpen] = React.useState(false)
  const [published, setPublished] = React.useState(false)
  const [target, setTarget] = React.useState<HTMLElement | null>(null)
  const switchRef = React.useRef<HTMLSpanElement>(null)
  const completedRef = React.useRef(false)

  return (
    <div className="flex w-full max-w-lg flex-col gap-3">
      <div className="flex flex-wrap items-center justify-between gap-2">
        <div className="flex min-w-0 items-center gap-2.5">
          <p className="truncate system-md-semibold text-text-primary">Customer support bot</p>
          <span className="inline-flex shrink-0 items-center gap-1.5 system-xs-medium text-text-secondary">
            <StatusDot status={published ? 'success' : 'disabled'} size="small" />
            {published ? 'Published' : 'Draft'}
          </span>
        </div>
        <Button
          disabled={published}
          focusableWhenDisabled
          onClick={() => {
            completedRef.current = false
            setOpen(true)
          }}
        >
          Show me how
        </Button>
      </div>
      <section className="rounded-xl border border-divider-subtle bg-background-section px-4 py-3.5">
        <Field name="publicWebApp" className="gap-0.5">
          <FieldLabel className="flex w-full items-center justify-between gap-4">
            Public web app
            <span ref={setTarget} className="inline-flex">
              <Switch
                ref={switchRef}
                checked={published}
                onCheckedChange={(checked) => {
                  setPublished(checked)
                  if (checked) {
                    completedRef.current = true
                    setOpen(false)
                  }
                }}
              />
            </span>
          </FieldLabel>
          <FieldDescription>
            {published ? 'Anyone with the link can chat.' : 'Only workspace members can chat.'}
          </FieldDescription>
        </Field>
      </section>
      <Coachmark
        open={open}
        onOpenChange={() => {
          completedRef.current = false
          setOpen(false)
        }}
        target={target}
        modal="allow-target"
      >
        <CoachmarkPortal>
          <CoachmarkSpotlight />
          <CoachmarkPositioner side="bottom">
            <CoachmarkPopup finalFocus={() => (completedRef.current ? switchRef.current : true)}>
              <CoachmarkArrow />
              <CoachmarkTitle>Publish your web app</CoachmarkTitle>
              <CoachmarkDescription>
                Turn on the switch to share the app with anyone who has the link.
              </CoachmarkDescription>
              <CoachmarkActions>
                <CoachmarkClose>Not now</CoachmarkClose>
              </CoachmarkActions>
            </CoachmarkPopup>
          </CoachmarkPositioner>
        </CoachmarkPortal>
      </Coachmark>
    </div>
  )
}
```

### Highlighting related elements

`highlightSelectors` widens the spotlight to cover related elements next to the target. The extra elements stay inert while lit; descendants of the target stay interactive. This example also passes the target as a selector.

```tsx title="highlight-selectors.tsx"
import { Button } from '@langgenius/dify-ui/button'
import {
  Coachmark,
  CoachmarkActions,
  CoachmarkArrow,
  CoachmarkClose,
  CoachmarkDescription,
  CoachmarkPopup,
  CoachmarkPortal,
  CoachmarkPositioner,
  CoachmarkSpotlight,
  CoachmarkTitle,
} from '@langgenius/dify-ui/coachmark'
import { StatusDot } from '@langgenius/dify-ui/status-dot'
import * as React from 'react'

const runLog = [
  { node: 'Start', status: 'success', statusLabel: 'Succeeded', duration: '0.01 s' },
  { node: 'Knowledge retrieval', status: 'success', statusLabel: 'Succeeded', duration: '0.42 s' },
  { node: 'LLM', status: 'success', statusLabel: 'Succeeded', duration: '1.87 s' },
] as const

export function CoachmarkHighlightSelectorsDemo() {
  const [open, setOpen] = React.useState(false)
  const actionRef = React.useRef<HTMLButtonElement>(null)

  return (
    <div className="flex w-full max-w-lg flex-col gap-3">
      <div className="flex flex-wrap items-center justify-between gap-2">
        <p className="system-md-semibold text-text-primary">Workflow</p>
        <Button onClick={() => setOpen(true)}>Show run tips</Button>
      </div>
      <section
        data-tour="run-log"
        className="overflow-hidden rounded-xl border border-divider-subtle bg-background-section"
      >
        <div className="flex items-center justify-between gap-2 border-b border-divider-subtle px-4 py-2.5">
          <span className="system-xs-semibold text-text-secondary">Last run</span>
          <span className="system-xs-regular text-text-tertiary tabular-nums">2.30 s total</span>
        </div>
        <ol className="flex flex-col divide-y divide-divider-subtle px-4">
          {runLog.map((entry) => (
            <li key={entry.node} className="flex items-center justify-between gap-3 py-2.5">
              <span className="min-w-0 truncate system-xs-medium text-text-primary">
                {entry.node}
              </span>
              <span className="flex shrink-0 items-center gap-3 system-xs-regular text-text-tertiary tabular-nums">
                <span className="inline-flex items-center gap-1.5 text-text-secondary">
                  <StatusDot status={entry.status} size="small" />
                  {entry.statusLabel}
                </span>
                <span className="w-11 text-end">{entry.duration}</span>
              </span>
            </li>
          ))}
        </ol>
      </section>
      <div className="flex flex-wrap items-center justify-between gap-3 pt-1">
        <p className="system-xs-regular text-text-tertiary">Last edited 2 minutes ago</p>
        <Button data-tour="test-run" variant="primary">
          <span aria-hidden="true" className="i-ri-play-line size-4" />
          Test run
        </Button>
      </div>
      <Coachmark
        open={open}
        onOpenChange={() => setOpen(false)}
        target='[data-tour="test-run"]'
        highlightSelectors={['[data-tour="run-log"]']}
      >
        <CoachmarkPortal>
          <CoachmarkSpotlight />
          <CoachmarkPositioner side="bottom">
            <CoachmarkPopup initialFocus={actionRef}>
              <CoachmarkArrow />
              <CoachmarkTitle>Test before you publish</CoachmarkTitle>
              <CoachmarkDescription>
                Each test run lists its nodes above with how long every step took.
              </CoachmarkDescription>
              <CoachmarkActions>
                <CoachmarkClose ref={actionRef}>Got it</CoachmarkClose>
              </CoachmarkActions>
            </CoachmarkPopup>
          </CoachmarkPositioner>
        </CoachmarkPortal>
      </Coachmark>
    </div>
  )
}
```

## Keyboard

| Key                    | Action                                                                                                       |
| ---------------------- | ------------------------------------------------------------------------------------------------------------ |
| `Tab`, `Shift` + `Tab` | Moves focus between the popup's controls. With `modal="allow-target"`, focus moves between popup and target. |
| `Escape`               | Calls `onOpenChange` with the `escape-key` reason. The coachmark stays open until the owner closes it.       |

## API reference

### Coachmark

Groups all parts of a guided-tour overlay that spotlights page elements and tracks step payloads across transitions. Doesn't render its own HTML element.

**Props**

| Prop                  | Type                                                                     | Default | Description                                                                                                                                                                                                                                                                                                                                                                                                                  |
| --------------------- | ------------------------------------------------------------------------ | ------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `open`                | `boolean`                                                                | —       | Whether the coachmark is currently open.                                                                                                                                                                                                                                                                                                                                                                                     |
| `onOpenChange?`       | `((open: boolean, eventDetails: CoachmarkChangeEventDetails) => void)`   | —       | Event handler called when the user requests to close the coachmark with a close button or the Escape key. Outside presses never close it.                                                                                                                                                                                                                                                                                    |
| `target`              | `CoachmarkTarget`                                                        | —       | The element to spotlight, or a CSS selector that resolves to it. The step waits until the target is visible in the viewport and every `highlightSelectors` entry matches a visible element; pass `null` while the target is not available.                                                                                                                                                                                   |
| `highlightSelectors?` | `string[]`                                                               | —       | CSS selectors for related elements that the spotlight covers together with `target`. Matched elements outside `target` stay inert while the step is shown.                                                                                                                                                                                                                                                                   |
| `modal?`              | `'allow-target' \| true`                                                 | `true`  | Determines how the coachmark isolates the rest of the page while open. - `true`: focus is trapped in the popup and the rest of the page is inert. Render a `CoachmarkClose` inside the popup for focus trapping to take effect. - `'allow-target'`: the user can interact with `target` directly while the rest of the page stays blocked. Page scroll is never locked, so targets inside scroll containers can be followed. |
| `payload?`            | `Payload`                                                                | —       | Data for the current step, available to a function child. The previous payload stays rendered while the next step is pending or the popup is closing. Pass `undefined` while the next step's data is not ready.                                                                                                                                                                                                              |
| `onStepShown?`        | `((payload: Payload) => void) \| (() => void)`                           | —       | Callback fired each time a step becomes visible, including when it reappears after stepping aside for another modal.                                                                                                                                                                                                                                                                                                         |
| `children?`           | `((state: { payload: Payload; }) => React.ReactNode) \| React.ReactNode` | —       | The coachmark parts, or a function that renders them from the shown step's payload.                                                                                                                                                                                                                                                                                                                                          |

Valid prop combinations:

- `payload: Payload | undefined`, `onStepShown?: ((payload: Payload) => void)`, `children?: ((state: { payload: Payload; }) => React.ReactNode) | React.ReactNode`
- `payload?: undefined`, `onStepShown?: (() => void)`, `children?: React.ReactNode`

### CoachmarkActions

Accepts the props of the element it renders.

### CoachmarkArrow

Displays an element positioned against the popover anchor. Renders a `<div>` element.

Inherits `className`, `render`, `style` from [Base UI Popover.Arrow](https://base-ui.com/react/components/popover#arrow).

**Data attributes**

| Attribute         | Description                                                           |
| ----------------- | --------------------------------------------------------------------- |
| `data-open`       | Present when the popup is open.                                       |
| `data-closed`     | Present when the popup is closed.                                     |
| `data-side`       | Indicates which side the popup is positioned relative to the trigger. |
| `data-align`      | Indicates how the popup is aligned relative to specified side.        |
| `data-uncentered` | Present when the popover arrow is uncentered.                         |

### CoachmarkClose

A button that closes the popover. Renders a `<button>` element.

Inherits `className`, `render`, `style`, `nativeButton` from [Base UI Popover.Close](https://base-ui.com/react/components/popover#close).

### CoachmarkDescription

A paragraph with additional information about the popover. Renders a `<p>` element.

Inherits `className`, `render`, `style` from [Base UI Popover.Description](https://base-ui.com/react/components/popover#description).

### CoachmarkPopup

A container for the popover contents. Renders a `<div>` element.

Inherits `className`, `render`, `style`, `initialFocus`, `finalFocus` from [Base UI Popover.Popup](https://base-ui.com/react/components/popover#popup).

**Data attributes**

| Attribute             | Description                                                                         |
| --------------------- | ----------------------------------------------------------------------------------- |
| `data-pending`        | Present while the next step waits for its target; the previous step stays in place. |
| `data-gliding`        | Present while the coachmark moves from the previous target to a new one.            |
| `data-open`           | Present when the popup is open.                                                     |
| `data-closed`         | Present when the popup is closed.                                                   |
| `data-starting-style` | Present when the popup begins animating in.                                         |
| `data-ending-style`   | Present when the popup is animating out.                                            |
| `data-side`           | Indicates which side the popup is positioned relative to the trigger.               |
| `data-align`          | Indicates how the popup is aligned relative to specified side.                      |
| `data-instant`        | Present if animations should be instant.                                            |

**CSS variables**

| Variable         | Type | Description              |
| ---------------- | ---- | ------------------------ |
| `--popup-width`  | —    | The width of the popup.  |
| `--popup-height` | —    | The height of the popup. |

### CoachmarkPortal

A portal element that moves the popup to a different part of the DOM. By default, the portal element is appended to `<body>`. Renders a `<div>` element.

Inherits `keepMounted`, `container`, `className`, `render`, `style` from [Base UI Popover.Portal](https://base-ui.com/react/components/popover#portal).

### CoachmarkPositioner

Positions the popover against the trigger. Renders a `<div>` element.

**Props**

| Prop                  | Type                                                  | Default                                                      | Description                                                                                                                        |
| --------------------- | ----------------------------------------------------- | ------------------------------------------------------------ | ---------------------------------------------------------------------------------------------------------------------------------- |
| `sideOffset?`         | `number \| OffsetFunction`                            | `25`                                                         | Distance between the target and the popup in pixels, measured outside the spotlight.                                               |
| `arrowPadding?`       | `number`                                              | `16`                                                         | Minimum distance to keep between the arrow and the edges of the popup, in pixels.                                                  |
| `collisionPadding?`   | `Padding`                                             | `8`                                                          | Additional space to maintain from the edge of the collision boundary, in pixels.                                                   |
| `collisionAvoidance?` | `CollisionAvoidance`                                  | `{ side: 'flip', align: 'shift', fallbackAxisSide: 'none' }` | How to avoid collisions with the edges of the viewport.                                                                            |
| `sticky?`             | `boolean`                                             | `true`                                                       | Whether to keep the popup in the viewport after the target scrolls out of view.                                                    |
| `side?`               | `'bottom' \| 'inline-end' \| 'inline-start' \| 'top'` | `'bottom'`                                                   | Which side of the target to place the popup against. Only logical sides are supported, so the popup follows the writing direction. |

Inherits `className`, `render`, `style`, `collisionBoundary`, `disableAnchorTracking` from [Base UI Popover.Positioner](https://base-ui.com/react/components/popover#positioner).

**Data attributes**

| Attribute            | Description                                                                         |
| -------------------- | ----------------------------------------------------------------------------------- |
| `data-pending`       | Present while the next step waits for its target; the previous step stays in place. |
| `data-gliding`       | Present while the coachmark moves from the previous target to a new one.            |
| `data-open`          | Present when the popup is open.                                                     |
| `data-closed`        | Present when the popup is closed.                                                   |
| `data-anchor-hidden` | Present when the anchor is hidden.                                                  |
| `data-side`          | Indicates which side the popup is positioned relative to the trigger.               |
| `data-align`         | Indicates how the popup is aligned relative to specified side.                      |

**CSS variables**

| Variable              | Type     | Description                                                                                                                   |
| --------------------- | -------- | ----------------------------------------------------------------------------------------------------------------------------- |
| `--available-width`   | `number` | The available width between the trigger and the edge of the viewport.                                                         |
| `--available-height`  | `number` | The available height between the trigger and the edge of the viewport.                                                        |
| `--anchor-width`      | `number` | The anchor's width.                                                                                                           |
| `--anchor-height`     | `number` | The anchor's height.                                                                                                          |
| `--transform-origin`  | `string` | The coordinates that this element is anchored to. Used for animations and transitions.                                        |
| `--positioner-width`  | `number` | The width of the popover's positioner. It is important to set `width` to this value when using CSS to animate size changes.   |
| `--positioner-height` | `number` | The height of the popover's positioner. It is important to set `height` to this value when using CSS to animate size changes. |

### CoachmarkSpotlight

An overlay displayed beneath the popover. Renders a `<div>` element.

Inherits `className`, `render`, `style` from [Base UI Popover.Backdrop](https://base-ui.com/react/components/popover#backdrop).

**Data attributes**

| Attribute             | Description                                                                         |
| --------------------- | ----------------------------------------------------------------------------------- |
| `data-pending`        | Present while the next step waits for its target; the previous step stays in place. |
| `data-gliding`        | Present while the coachmark moves from the previous target to a new one.            |
| `data-open`           | Present when the popup is open.                                                     |
| `data-closed`         | Present when the popup is closed.                                                   |
| `data-starting-style` | Present when the popup begins animating in.                                         |
| `data-ending-style`   | Present when the popup is animating out.                                            |

### CoachmarkStepLabel

Accepts the props of the element it renders.

### CoachmarkTitle

A heading that labels the popover. Renders an `<h2>` element.

Inherits `className`, `render`, `style` from [Base UI Popover.Title](https://base-ui.com/react/components/popover#title).
