Styling
A StarPicker component returns the following html structure by default:
<div class="StarPicker">
<button class="StarPickerButton">
<div class="StarPickerButtonContent">
<div class="DefaultStarComponent">★</div>
</div>
</button>
<button class="StarPickerButton">...</button>
<button class="StarPickerButton">...</button>
<button class="StarPickerButton">...</button>
<button class="StarPickerButton">...</button>
</div>
In addition to the class names listed above for each element, every "StarPickerButton" button is given the class names of:
selectedif the button is part of the current selectionaddSelectionif not selected but is part of suggested selection during hoverremoveSelectionif is selected but not part of suggested selection during hoverisHoveredif the button is being hovered overisClickedif this button was clicked to get the current selection
These additional class names may be useful when customizing styles for the different selection states. However, when there's a greater need to control the content and styling of the rendered stars, consider providing StarPicker with a custom star renderer.