mirror of
				https://github.com/lingble/chatwoot.git
				synced 2025-11-03 20:48:07 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			20 lines
		
	
	
		
			461 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			20 lines
		
	
	
		
			461 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
import { action } from '@storybook/addon-actions';
 | 
						|
import AddLabel from './AddLabel';
 | 
						|
 | 
						|
export default {
 | 
						|
  title: 'Components/Label/Add Button',
 | 
						|
  component: AddLabel,
 | 
						|
  argTypes: {},
 | 
						|
};
 | 
						|
 | 
						|
const Template = (args, { argTypes }) => ({
 | 
						|
  props: Object.keys(argTypes),
 | 
						|
  components: { AddLabel },
 | 
						|
  template: '<add-label v-bind="$props" @add="onClick"></add-label>',
 | 
						|
});
 | 
						|
 | 
						|
export const AddButton = Template.bind({});
 | 
						|
AddButton.args = {
 | 
						|
  onClick: action('opened'),
 | 
						|
};
 |