FormsField

Open in Create
Search
astronomic.dev

Field

Free

Around every form control, for its label, hint and error message.

File
Field.astro
Group
Forms
Kind
Static: no JavaScript
Examples
2
import Field from "@astronomic-dev/ui/components/Field.astro";

Examples

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

  • Static
  • Interactive
  • Framed

Label, hint and error

We answer within two business days.

Enter an email address, like name@example.com.

Force state
main.astro

On a band

tone="band" on a surface-band area: the label, hint and marker take the band's text colors, the focus ring is the band's text color (the accent when no preset sets the band), and the error is in the band's text color with a warning icon. Each control keeps its own fill, so the invalid one still shows its red edge. In a frame, so a test can set a band on it.

band.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.