diff --git a/packages/grafana-ui/src/components/Dropdown/Dropdown.mdx b/packages/grafana-ui/src/components/Dropdown/Dropdown.mdx new file mode 100644 index 00000000000..150cf5cf653 --- /dev/null +++ b/packages/grafana-ui/src/components/Dropdown/Dropdown.mdx @@ -0,0 +1,35 @@ +import { Meta, Props } from '@storybook/addon-docs/blocks'; + +import { Dropdown } from './Dropdown'; + + + +# Dropdown + +Hook up a menu or other overlay to any trigger. + +### When to use + +When you want a button, link or icon button to open a Menu or Popover. By default the trigger is click but it can be changed to show on hover using the +trigger property. + +### Usage + +```tsx +import { Dropdown, Menu, Button } from '@grafana/ui'; + +const menu = ( + + + + +); + +return ( + + + + + + + - + + + ); } +/** + * This is just temporary, needs syncing with the backend option like DisableSignoutMenu + */ +export function ProfileMenu() { + return ( + + + + + + ); +} + const getStyles = (theme: GrafanaTheme2) => { return { searchBar: css({