# PageActions

> The "Copy page" split button a docs page carries in its header: the main half copies the page's Markdown twin, and the chevron opens a menu of places to take the page (View as Markdown, Open in Claude, Edit on GitHub).

```ts
import { PageActions } from "@sdxc/ui/docs";
```

Renders the split button: the copy island, then the chevron opening a native popover
menu through `popovertarget`, so the menu opens and closes without JavaScript.

## Examples

```tsx
<PageActions markdownHref="/docs/install.md" labels={labels} links={[{ label: "View as Markdown", href: "/docs/install.md" }]} />
```

## Props

| Prop | Type | Description |
| --- | --- | --- |
| `markdownHref` | `string` | The page's Markdown twin, fetched and copied by the main button. |
| `labels` | `Labels` |  |
| `links?` | `Link[]` | The menu's entries; with none, the chevron and menu are left out. |
| `menuId?` | `string` | Id shared by the menu and its trigger. @default "page-actions-menu" |

Also accepts everything in `Omit<TagProps<"div">, "children">`.

