# Shadcn Links & Action

> Markers as links and as an action button

- Type: example, free and open source (MIT)
- Component: [Marker](https://web.dev.reui.io/components/marker.md)
- Page: https://web.dev.reui.io/components/marker/c-marker-6
- Docs (Base UI): https://ui.shadcn.com/docs/components/base/marker.md
- Docs (Radix UI): https://ui.shadcn.com/docs/components/radix/marker.md
- MCP: `get_example("c-marker-6")`
- Registry item: https://web.dev.reui.io/r/styles/base-nova/c-marker-6.json
- Uses: Marker

## Best for

A pair of underlined link rows over a button row that flips between revert and undo, announced in a live region

## Agent notes

- Both link rows keep a placeholder `href`; point them at your pull request and diff pages
- The revert row only flips local `reverted` state; call your revert action from its `onClick`

## When not to use

- A standalone action or link styled as a control, outside a list of status lines: use [Button](https://web.dev.reui.io/components/button.md) (`get_component("button")`)
- Status lines that only report what a run did, with nothing to click: use [Tool Call Log](https://web.dev.reui.io/components/marker/c-marker-2.md) (`get_example("c-marker-2")`)

## Install

```bash
npx shadcn@latest add @reui/c-marker-6
```

## About Shadcn Marker

### When to use

- Agent run logs and tool call lists, one short line of status text per step
- Labeled dividers that split a transcript or run log into named phases
- Ruled summaries such as changed files, and rows that open a link or run an action

### When not to use

- A plain horizontal or vertical rule between content sections or menu items: use [Separator](https://web.dev.reui.io/components/separator.md) (`get_component("separator")`)
- A complete run console with approval steps, log views or an outcome report: use the [Agent Activity blocks](https://web.dev.reui.io/blocks/ai-agents/agent-activity.md)
- Dated events or milestones joined by indicator dots and a connecting line: use [Timeline](https://web.dev.reui.io/components/timeline.md) (`get_component("timeline")`)

### Agent notes

- Make a row a link or button with `render` on the base twin and `asChild` on the radix twin
- `MarkerIcon` is `aria-hidden` with everything inside it, so the `MarkerContent` text alone must say what the row means
- An svg in `MarkerIcon` takes each style's icon size only while it carries no size class of its own

Every ReUI item has a twin like this one; the index is https://web.dev.reui.io/llms.txt. Agents with the ReUI MCP (https://web.dev.reui.io/docs/mcp) get the same guidance from the getters named above.
