import DropdownControl, {DropdownItem} from 'sentry/components/dropdownControl';
import MenuItem from 'sentry/components/menuItem';
export default {
title: 'Components/Buttons/Dropdowns/Dropdown Control',
};
export const BasicLabelKnobs = ({
menuWidth,
alwaysRenderMenu,
alignRight,
blendWithActor,
}) => {
return (
Href Item
Router Item
Disabled Item
Active Item
);
};
BasicLabelKnobs.storyName = 'Basic Label + Knobs';
BasicLabelKnobs.args = {
menuWidth: '',
alwaysRenderMenu: true,
alignRight: false,
blendWithActor: false,
};
BasicLabelKnobs.parameters = {
docs: {
description: {
story: 'Using a string value for the button label',
},
},
};
export const BasicMenuItem = () => (
Slanty}>
);
BasicMenuItem.storyName = 'Basic Menu Item';
BasicMenuItem.parameters = {
docs: {
description: {
story: 'Element labels replace the button contents',
},
},
};
export const ElementLabel = () => (
);
ElementLabel.storyName = 'Element Label';
ElementLabel.parameters = {
docs: {
description: {
story: 'Element labels replace the button contents',
},
},
};
export const PrefixedLabel = () => (
);
PrefixedLabel.storyName = 'Prefixed Label';
PrefixedLabel.parameters = {
docs: {
description: {
story: 'Element labels replace the button contents',
},
},
};
export const CustomButton = () => (
}
>
);
CustomButton.storyName = 'Custom Button';
CustomButton.parameters = {
docs: {
description: {
story: 'button prop lets you replace the entire button.',
},
},
};