FormValid

Component showing validation messages under inputs. Displays the returned error or optionally a message related to the validity of the value.

FormValidBosons

Error
Text of error message.
type: string
Info
IText of info message.
type: string

Examples

Input with info
This email will be using by us
1// Input with info
2
3@atoms.FormField(&atoms.FormFieldBosons{}) {
4  @atoms.FormLabel(&atoms.FormLabelBosons{Text: "Email:"})
5  @atoms.FormInputField(&atoms.FormInputFieldBosons{}) {
6    @atoms.FormInput(&atoms.FormInputBosons{})
7  }
8  @atoms.FormValid(&atoms.FormValidBosons{Info: "This email will be using by us"})
9}
Input with error
Please, give us mail
1// Input with error
2
3@atoms.FormField(&atoms.FormFieldBosons{}) {
4  @atoms.FormLabel(&atoms.FormLabelBosons{Text: "Email:"})
5  @atoms.FormInputField(&atoms.FormInputFieldBosons{Error: true}) {
6    @atoms.FormInput(&atoms.FormInputBosons{})
7  }
8  @atoms.FormValid(&atoms.FormValidBosons{Info: "This email will be using by us", Error: "Please, give us mail"})
9}

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.