Back
CheckboxGroup
Basic Usage
Notifications
With Select All
Enables a top-level toggle for all options.
Choose Interests
Selection Limit (Max 2)
Prevent users from selecting more than a specific number of items.
Top Skills
Please select up to 2 skills.
Inline Layout
Toppings
Usage
@forms.CheckboxGroup(forms.CheckboxGroupProps{
Label: "Notifications",
Name: "notif",
ShowSelectAll: true,
MaxSelections: 3,
Options: []forms.CheckboxOption{
{Label: "Email", Value: "email", Checked: true},
{Label: "SMS", Value: "sms"},
},
})