Back
Multiselect
Basic
No options found
Searchable
No options found
Max 3 Selections
No options found
/3 selected
With Disabled Option
No options found
API and Priority Support require a paid plan.
Usage
@forms.Multiselect(forms.MultiselectProps{
ID: "tags",
Name: "tags",
Label: "Tags",
Options: []forms.MultiselectOption{
{Value: "go", Label: "Go"},
{Value: "ts", Label: "TypeScript"},
{Value: "rust", Label: "Rust", Disabled: true},
},
Values: []string{"go"}, // pre-selected values
Searchable: true,
Max: 3, // 0 = unlimited
})