Selector is a component that allows to select one item from a list.
<div class="selector opened">
<span class="selected-option">Option 2</span>
<span class="down-button"></span>
<div class="options-list">
<button class="option">Option 1</button>
<button class="option" aria-selected="true">>Option 2</button>
<button class="option">Option 3</button>
</div>
</div>
disabled
- changes the text color of the selected option previewdown-button
- a button with a down arrowno-position
- when added to the selector container, the position styling doesn't get applied to the option listopened
- a class that should be added to the selector container when it's openedoption
- a button that represents an optionoptions-list
- a container of the option buttonsselected-option
- the preview of the selected option that's visible when the selector is closedselector
- container of the selector elementtop
- a class that should be added to the selector container if the option list should be positioned above the selector, instead of below it as it is by default