Element: #025 Phone and CEP (inputs/masked-field) What it shows: A PhoneField and a CepField that looks up an address asynchronously and prints the resolved street, district and city. When to use: Brazilian address and contact forms that autofill street data from a postal code lookup. Spec: - `` - ` (address = a)}` - `async function lookup(raw: string)` waits 600 ms and returns a `CepAddress` only for `01310100`, otherwise `null` - Result line shows `Looking up…` while pending, then `logradouro`, `bairro`, `localidade` and `uf` Tags: phone-field, cep-field, lookup, address, brazil, async, forms Needs: @codeatlasdev/ui@4.4.0 Components: CepField, PhoneField Live demo: https://ui.codeatlas.com.br/docs/inputs/masked-field#phone-and-cep

value = {phone || '–'}

(address = a)} />

{#if pending}Looking up…{:else if address}{address.logradouro}, {address.bairro} · {address.localidade}/{address.uf}{:else}–{/if}