FormInput

Basic element in forms.

FormInputBosons

Autocomplete
Autocomplete on/off.
type: string
default: off
values: on,off
Size
Size of input.
type: string
default: md
values: sm, md, lg
Type
Input type.
type: string
default: text
Attrs
Sets attributes in the html tag.
type: gopress.Attrs

FormInputFieldBosons

Error
Is there any error.
type: bool
default: false
Attrs
Sets attributes in the html tag.
type: gopress.Attrs

Examples

Standard input
1// Standard input
2
3@atoms.FormInputField(&atoms.FormInputFieldBosons{}) {
4  @atoms.FormInput(&atoms.FormInputBosons{})
5}
Large size with error
1// Large size with error
2
3@atoms.FormInputField(&atoms.FormInputFieldBosons{
4  Error: true,
5}) {
6  @atoms.FormInput(&atoms.FormInputBosons{
7    Size: "lg",
8  })
9}

Let's dive deeper and connect!

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