Magoo Component UI logo Magoo Component UI
← Catalog

Invite Member

invite-member molecule experimental

An inline email-plus-role invite form that emits an event with the address and chosen role on submit.

Also in: Forms

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
TwoRoles

Props

NameTypeReq
placeholder string
roles array ✓

Related components

How to use

behavior.js listens for the form's submit, prevents the default navigation, and dispatches a bubbling member:invite CustomEvent with detail { email, role } read from the email input and role select. The portable self-init passes no props object — everything is read from the form's own inputs. Listen for member:invite on an ancestor to perform the actual invitation, then clear or disable the form as needed.

Use cases

form WCAG AA SEO 20 dir: both ai-generated