E911 address form
An E911 emergency-address form. Collects and validates the civic address a carrier dispatches on for a tenant's numbers, POSTs to /e911_addresses through your proxy, and reports the validation status it comes back with.
Installation
npx shadcn@latest add @handset/e911-address-formUses the proxy's POST /e911_addresses route.
Usage
import { E911AddressForm } from "@/components/handset/e911-address-form";
<E911AddressForm
tenantId={tenant.id}
onRegistered={(address) => toast(`Emergency address ${address.status}`)}
/>The API validates the civic address; a bad address comes back as an e911_address_invalid error, which the form surfaces inline.
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| tenantId | string | — | The tenant this emergency address belongs to (tnt_…). Required. |
| onRegistered | (address: E911Address) => void | — | Called with the saved address on success. |
| className | string | — | Merged onto the form. |