FormsAreaCheck

Open in Create
Search
astronomic.dev

AreaCheck

Pro

For a service area: type a ZIP code and see yes, with a link to that town's page, or not yet. With no script, a link to your areas page.

File
AreaCheck.astro
Group
Forms
Kind
Interactive: inline script
Examples
4
import AreaCheck from "@astronomic/ui-pro/components/AreaCheck.astro";

Examples

Drag the orange handle to set the width. Frames get real breakpoints.

  • Static
  • Interactive
  • Framed

Type a ZIP, get an answer

Brassfield Plumbing's towns, inline. Yes names every area the ZIP is in, each a link to its page; not yet offers the number as a tel link. A 4-digit entry marks the field and shows its error.

main.astro

Areas from a URL

source is a URL that serves { areas: [...] }, fetched once, the first time the field is used; inline areas are better for a short list. While it loads the button is busy and a waiting check says "Checking…". If the load fails, "Try again" and the link to the areas page show.

source.astro

On the band

tone="band": the form takes the band's surface, edge and focus ring, and the field and buttons the band's colors.

band.astro

No area pages, no phone

In a 20rem column. With no href the towns are plain names, and with no phone the not-yet answer is noText alone, here with your own words.

no-phone.astro
Minimal · Light

Waitlist

Be first in line

Join the waitlist and we'll email you the moment it's out.

You'll also get our newsletter: new themes, plugins and guides. Unsubscribe any time.