Open j-vitali opened 1 month ago
Hey @j-vitali ,
can you try pass IconTrash
as like <Dropdown.Item className="text-red-600" icon={IconTrash} />
and see if that's working for you?
Hey @j-vitali ,
can you try pass
IconTrash
as like<Dropdown.Item className="text-red-600" icon={IconTrash} />
and see if that's working for you?
yes if works, but still is red line message eslint... :D
Hey @j-vitali , can you try pass
IconTrash
as like<Dropdown.Item className="text-red-600" icon={IconTrash} />
and see if that's working for you?yes if works, but still is red line message eslint... :D
the ESLint Error remains same?
Hey @j-vitali , can you try pass
IconTrash
as like<Dropdown.Item className="text-red-600" icon={IconTrash} />
and see if that's working for you?yes if works, but still is red line message eslint... :D
the ESLint Error remains same?
yes right.
Hey @j-vitali , can you try pass
IconTrash
as like<Dropdown.Item className="text-red-600" icon={IconTrash} />
and see if that's working for you?yes if works, but still is red line message eslint... :D
the ESLint Error remains same?
yes right.
are you using Icons from react-icons
?
Hey @j-vitali , can you try pass
IconTrash
as like<Dropdown.Item className="text-red-600" icon={IconTrash} />
and see if that's working for you?yes if works, but still is red line message eslint... :D
the ESLint Error remains same?
yes right.
are you using Icons from
react-icons
?
no, as you can see i use tabler icons
I also has the same error with flowbite-react-icons
For now just cast it as the DropdownItem
icon
type:
<Dropdown.Item className="text-red-600" icon={IconTrash as FC<ComponentProps<"svg">>} />
basically I use tsx with tabler-icons... I want to wrap my svg ico directly in
icon={}
props, but got ts error:Steps to reproduce
Current behavior
Ts error
Expected behavior
Everything working fine, this is for all icon={} props not only for dropdown... :D
Context