Forms & actions

Forms are documents an editor builds field by field, then places with a Form block. Buttons can also open a modal or run an action instead of linking somewhere.

Form · every input type

Text, email, phone, URL, number, select, radio buttons, a date picker, a rating, a message and a checkbox — on a two-column grid that stacks on a phone. Submissions go by email or into Sanity. This is the shipped input style.

Form · the Scorecard input style, on a colour theme

A short form, left-aligned on the Pitch band, with Input style set to "Rosterly: Scorecard" — the theme’s own preset: filled boxes with square corners and a heavy bar along the foot that lights volt on focus, like a score being entered. A theme adds an input style with one class-name preset and its CSS; the form document does not change. Its fields take their colours from the section’s theme unless the form picks an input theme of its own.

Buttons that do something

A modal button opens a dialog that holds blocks of its own — here, the team news sign-up. An action button runs a function the project registers — the cookie preferences here, or a file download such as the scoring rules PDF.

Every button style

The look of all of these buttons comes from Link Style presets in the Studio. The submit buttons use Primary, which uses the theme’s own Slant style.

Your league’s next season starts here

Set up a league in five minutes, invite your rivals with one link, and draft live on the night. Free for up to ten managers.