v2.3.3
Change Log
🚀 Feature
- Addresses issue: To styling with different states #11 . Expanded the typings for
clearIconandcaretIconproperties to beReactNode | ((state: Partial<IndicatorIconsProps>) => ReactNode)- allowing a function as an option enables the ability to work with state values from the wrapping componentIndicatorIcons.tsx. The state forwarded to the function would be:
const state = {
menuOpen,
isLoading: !!isLoading,
isInvalid: !!isInvalid,
isDisabled: !!isDisabled
};Properties isLoading, isInvalid, isDisabled are all undefined by default, so normalizing to boolean.