Back

Multiselect

Basic

Searchable

Max 3 Selections

/3 selected

With Disabled Option

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
})