-
-
Notifications
You must be signed in to change notification settings - Fork 355
Open
Description
Hey. How do i change the indicator conditionally on the select component V3. When select component is closed, i want to show the chevronDown icon and when the list is open i want to show the chevronUp icon.
Here is my code
const SelectInput = (config: SelectInputProps): JSX.Element => {
return (
<div>
<Typography type="small" color="primary" className="font-medium">{config.label}</Typography>
<Select>
<Select.Trigger placeholder="Select Version" indicator={<ChevronDownV2 width={20} height={20} />}/>
<Select.List >
<Select.Option>Material Tailwind React</Select.Option>
<Select.Option>Material Tailwind HTML</Select.Option>
<Select.Option>Material Tailwind Vue</Select.Option>
<Select.Option>Material Tailwind Svelte</Select.Option>
</Select.List>
</Select>
</div>
);
}
Metadata
Metadata
Assignees
Labels
No labels