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-selectcustom attribute transforms standard Webflow dropdowns into fully customizable select components with rich styling options and enhanced user experience.
Attribute Syntax
The attribute uses the following syntax:Elements
dropdown
Defines the dropdown element that contains the custom select component.label
Defines the label that displays the currently selected option.clear
Defines an option that will remove the selected value and reset the select.Settings
hideinitial
Defines if the reset option should be hidden whenever there isn’t an active selection.Usage Examples
How It Works
- Initializes on Webflow dropdown elements with the
dropdownattribute - Waits for the
fs-listattribute to load (dependency) - Populates options from the dropdown list items
- Updates label when an option is clicked
- Tracks selection state and manages option visibility
- Handles keyboard navigation (Space, Tab, Arrow keys)
- Clears selection when the clear element is clicked
- Hides/shows clear option based on
hideinitialsetting
Keyboard Navigation
The custom select supports keyboard controls:- Space - Toggle dropdown open/closed
- Tab - Navigate between elements
- Arrow Up - Navigate to previous option
- Arrow Down - Navigate to next option
- Enter - Select focused option
- Escape - Close dropdown
Dependencies
This attribute requires thefs-list attribute to be loaded first, as it depends on list functionality for option management.
The custom select works with Webflow’s native dropdown component and enhances it with additional functionality while maintaining the design you create in Webflow.
Accessibility
The attribute includes built-in accessibility features:- Full keyboard navigation support
- ARIA attributes for screen readers
- Focus management
- Semantic HTML structure