Skip to content
Twentyfirst UIPro

Mail Route List

Data · MailRouteList, RecipientInput

View as Markdown

The aliases and forwards of a domain: each address with where it delivers to, its kind and whether it is active. "Add address" opens a small form (the local part with the domain, the targets as address chips, alias or forward); deleting asks first.

  • hello@example.commara@example.com, jonah@example.comAlias
  • jobs@example.comava@example.comAlias
  • invoices@example.combookkeeping@accounts.example.orgForwardKeeps a copy
  • press@example.commara@example.comAliasInactive

Props

MailRouteList

PropTypeNotes
routesMailRoute[]Required
domain?stringThe domain new addresses belong to ("example.com").
onAdd?(route: { address: string; targets: string[]; kind: "alias" | "forward" }) => voidShows "Add address" with a small form.
onDelete?(address: string) => voidDelete (after a confirmation).
suggestions?MailRecipient[]Mailboxes suggested as targets.
busy?boolean
label?string
className?stringExtra class on the root element.
style?CSSPropertiesInline style on the root element.

RecipientInput

PropTypeNotes
labelstringRequired
hideLabel?boolean
id?string
value?MailRecipient[]The addresses (controlled) / initially / on change.
defaultValue?MailRecipient[]
onChange?(value: MailRecipient[]) => void
suggestions?MailRecipient[]Known addresses, filtered while typing.
suggest?(typed: string) => MailRecipient[] | Promise<MailRecipient[]>Or ask your server while typing (debounced).
validate?(address: string) => booleanYour own address check (default: a plain e-mail pattern).
placeholder?string
hint?string
error?string
disabled?boolean
autoFocus?boolean
className?stringExtra class on the root element.
style?CSSPropertiesInline style on the root element.