Magoo Component UI logo Magoo Component UI
← Catalog

Approval Request Row

approval-request-row molecule experimental

A pending-request row with the requester, request type and detail, an optional amount and date, and approve/deny buttons.

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

Time off

Priya Raman

Mar 4 - Mar 8, vacation

$420.00 Submitted Feb 20
Expense

Expense

Tom Becker

Conference travel - flights and hotel

$420.00 Submitted Feb 22

Props

NameTypeReq
requester string ✓
initials string
type string ✓
detail string
date string
amount string

Related components

How to use

The row is static markup; behavior.js wires the two buttons, which carry data-decision="approve" or "deny". Clicking either dispatches a bubbling "approval:decision" event with { decision } and sets data-resolved on the row so a host can style or remove it. The portable self-init reads everything from the DOM - no props object is passed.

Use cases

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