Adding Thresholds to a personnal panel

Hello everyone,
I am using grafana 7 on linux (not using docker) and I am trying to build a panel where a user should be able add thresholds.
I tried using the ThresholdsEditor available in grafana storybook, but ‘Cannot find name ‘ThresholdsEditor’’ is the error I’m getting.
Is there an other way to implement it? any help would be really appreciated.
Abir