Variants
The same markup as a Viewer invite, an invite with a bad address (press Send to see the error), and a disabled form.
Usage
Paste the markup, include assets/css/tokens.css and assets/css/tailwind.css, then run the script from this page.
Accessibility
- Role and state. The form is a real form with a labelled email field (aria-invalid on error), and roles are a radiogroup (role="radio", aria-checked, roving tabindex). Results arrive in a role="status" line and a polite live region.
- Keyboard. Type an address, Tab to the roles, arrow keys change role, Enter sends. After an error focus returns to the email field; after delivery it is ready for the next invite.
- Pointer and touch. Controls are 40px tall or more. The sky is decoration: clicking it throws an extra plane, but nothing depends on it.
- Reduced motion. The plane lands instantly: no loop, contrail, shake or sparks. The new teammate still appears, and every message and the invite counter are unchanged. The 3D scene still renders a still frame.