FormField

This component is designed to group elements related to one field in the container, e.g. label and text input. FormField can function as an element of a FormGroup.

FormFieldBosons

Template
Template for elements inside.
type: string
default: vertical
values: vertical, horizontal, radio, toggle, checkbox
Attrs
Sets attributes in the html tag.
type: gopress.Attrs

Examples

Standard input in FormField
1// Basic example
2
3@atoms.FormField(&atoms.FormFieldBosons{}) {
4  @atoms.FormInputField(&atoms.FormInputFieldBosons{}) {
5    @atoms.FormInput(&atoms.FormInputBosons{})
6  }
7}

Let's dive deeper and connect!

Gopress is brought to you by Pay For Done. We specialize in crafting products and services rooted in design systems. Join our community to discuss how we can support you.


© 2024 Pay For Done. All Rights Reserved. Website compliant with W3C validation.