Documentation Index
Fetch the complete documentation index at: https://mintlify.com/finsweet/attributes/llms.txt
Use this file to discover all available pages before exploring further.
Overview
Thefs-combobox attribute creates a combo box component that combines a dropdown with a searchable input field. This allows users to efficiently select items from large lists by typing to filter options.
Attribute Syntax
The attribute uses the following syntax:Elements
dropdown
Defines the dropdown element that contains the combo box.label
Defines the label that displays the currently selected option.clear
Defines an option that will clear the dropdown selection and input field.empty
Defines a state element that appears when no results are found from the input field search.Settings
Settings are applied using additional attribute modifiers:preventclear
If no results are found from the input field search, this prevents the input field from being cleared.hideinitial
Defines if the reset option should be hidden whenever there isn’t an active selection.Usage Examples
How It Works
The combo box attribute:- Initializes on Webflow dropdowns with the
dropdownelement attribute - Filters options as users type in the input field
- Updates the label when an option is selected
- Shows/hides the empty state based on search results
- Clears selection when the clear element is clicked
- Supports keyboard navigation for accessibility
Dependencies
This attribute requires thefs-list attribute to be loaded first, as it depends on list functionality for option management.
The combo box works with Webflow’s native dropdown component and extends it with search functionality.