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}