Hello Everybody,
I am not possible to use the Dropdown component that should be at @grafana /ui in accord with the documentation:
Dropdown
When I try to import it, I got the message:
import Dropdown
Module ‘“@grafana /ui”’ has no exported member ‘Dropdown’.ts(2305)
I am importing the component like:
import { Dropdown } from ‘@grafana /ui’;
I am using the grafana ui version 9.0.6 and I also tried on version 8.5.0.
p.s.: If I go to the library → @grafana /ui → components → I did not found the Dropdown, just the DropdownIndicator.
Please, any help would be very appreciate.
Cheers,
Turtles
haha we are finding the same problems this week @companymvms . They have removed it from the storybook. I saw it on Monday here Webpack App , planned to use it in the plugin I’m making. Now I come to use it on Friday and it’s gone. Welcome to Grafana plugin dev . Just kidding.
I think we will have to fork it from here grafana/Dropdown.tsx at main · grafana/grafana · GitHub . Looks like it’s going to be in Grafana 9.1.0 beta Dropdown: New dropdown component by torkelo · Pull Request #52684 · grafana/grafana · GitHub .
1 Like
Thank you very much for this information!
system
Closed
August 16, 2023, 2:24pm
4
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.