UI Components Live gallery
What the Delivery service ships for apps to use, as the package packages/ui-delivery.
Each built component is shown live, from its package, in each of its states. Pick a state to see it; every state has its own stand-in for the service's API, with made-up data (CORE-V1-E0-19).
- Components only read message status; sending is an app's server's job.
- They ship as the package
packages/ui-delivery and show any app's messages by reference. - No email address or message content is ever shown or sent to the browser.
- Keyboard reachable, WCAG AA contrast, usable at 320 pixels wide, in light and dark mode.
MessageStatus
Component
One line about the email for a reference: on its way, sent, or couldn't be sent.
Inputs
referencestring- The app's reference, for example the document.
pendingTextstring, optional- Shown while queued. Default 'We'll email you a copy.'
States
- Loading: nothing shown, so the page does not jump
- Queued: 'We'll email you a copy.'
- Sent: 'A copy is in your email.'
- Failed: 'Email couldn't be sent.'
- None found: nothing shown
Calls
GET /messages?reference=…
●LiveFrom the package, synthetic data
UI components on GitHub →