# Gallery

Each form below is written in Markdown in this page, and plays in `mock` mode: pick the API's
answer above it, nothing is sent.

## Contact

A select, an optional field with its help text, a long message.

::::form{#contact submit=mock privacy=/privacy}
::field[Your name]{name=name required autocomplete=name maxlength=120}
::field[Email]{name=email type=email required autocomplete=email}
::field[Subject]{name=topic type=select required options="question=A question,quote=A quote,other=Something else"}
::field[Company]{name=company autocomplete=organization maxlength=120 help="Only if you write for a company."}
::field[Message]{name=message type=textarea rows=5 required minlength=10 maxlength=2000}
::consent[I agree that Lorem Ipsum Studio stores this message to answer it]{name=consent required version=2026-11}
::submit[Send the message]

:::success
Thanks, lorem ipsum: your message is on its way.
:::
::::

## Newsletter

The smallest form that collects an email: one field and its consent.

::::form{#newsletter submit=mock privacy=/privacy}
::field[Email]{name=email type=email required autocomplete=email}
::consent[I agree to receive the Lorem Ipsum letter, once a month]{name=consent required version=2026-11}
::submit[Subscribe]
::::

## Feedback

Groups of fields, a scale as radio buttons, several choices at once. No personal data, so no
consent is needed.

::::form{#feedback submit=mock}
:::fieldset[Your visit]
::field[How was it?]{name=rating type=radio required options="1=Poor,2=Fair,3=Good,4=Very good"}
::field[What did you use?]{name=used type=checkbox-group options="deck=Decks,motion=Films,docs=Docs"}
:::
::field[One thing to improve]{name=improve type=textarea rows=3 maxlength=1000 help="Lorem ipsum dolor sit amet."}
::submit[Send]
::::
