2021-05-06 14:31:26 +00:00
|
|
|
import { action } from '@storybook/addon-actions';
|
|
|
|
import LabelDropdownItem from './LabelDropdownItem';
|
|
|
|
|
|
|
|
export default {
|
|
|
|
title: 'Components/Label/Item',
|
|
|
|
component: LabelDropdownItem,
|
|
|
|
argTypes: {
|
|
|
|
title: {
|
|
|
|
defaultValue: 'sales',
|
|
|
|
control: {
|
|
|
|
type: 'text',
|
|
|
|
},
|
|
|
|
},
|
|
|
|
color: {
|
|
|
|
defaultValue: '#555',
|
|
|
|
control: {
|
|
|
|
type: 'text',
|
|
|
|
},
|
|
|
|
},
|
|
|
|
selected: {
|
|
|
|
defaultValue: true,
|
|
|
|
control: {
|
|
|
|
type: 'boolean',
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
};
|
|
|
|
|
|
|
|
const Template = (args, { argTypes }) => ({
|
|
|
|
props: Object.keys(argTypes),
|
|
|
|
components: { LabelDropdownItem },
|
|
|
|
template:
|
|
|
|
'<label-dropdown-item v-bind="$props" @click="onClick"></label-dropdown-item>',
|
|
|
|
});
|
|
|
|
|
2022-07-08 15:49:19 +00:00
|
|
|
export const Item = Template.bind({});
|
|
|
|
Item.args = {
|
2021-05-06 14:31:26 +00:00
|
|
|
onClick: action('Selected'),
|
|
|
|
};
|