Magoo Component UI logo Magoo Component UI
← Catalog

Moderator Tools

moderator-tools molecule experimental

A compact moderation toolbar of labelled action buttons (Pin, Lock, Move, Remove) that dispatch events.

The width preview needs a screen wider than the chosen width — use a larger device (or a desktop browser) to see the desktop and tablet layouts.

Default
LabelsOnly

Props

NameTypeReq
actions array

Related components

How to use

Each button carries its identifier in data-action (set from the action's value). behavior.js wires a click listener on every button that dispatches a bubbling "mod:action" CustomEvent with detail { action }. The portable self-init reads config from the data-* attributes only — no props object is passed. Confirm destructive actions (Remove) in the host handler.

Use cases

list-itemhighlight WCAG AA SEO 20 dir: both ai-generated