Files
ersatztv/design-system/components/forms/IconButton.prompt.md
T
2026-07-02 07:37:00 +02:00

10 lines
434 B
Markdown

**IconButton** — icon-only square button for table row actions (edit, preview, delete) and toolbars. Always pass `title` for the tooltip/aria-label.
```jsx
<IconButton title="Edit channel"><EditIcon/></IconButton>
<IconButton title="Preview" variant="solid"><PlayIcon/></IconButton>
<IconButton title="Delete" disabled><TrashIcon/></IconButton>
```
Props: `size` (sm·md), `variant` (ghost·solid), `active`, `disabled`, `title`.