import ICONS from './icons' import DefaultButton from './DefaultButton.vue' const icons = Object.keys(ICONS) export default { title: 'The Design system/Buttons/Default button', component: DefaultButton, tags: ['autodocs'], args: { isDisabled: false, isLoading: false, isError: false, isShowTooltip: false, isActive: false, label: 'Добавить', size: 'M', color: '', colorDisabled: '', colorHover: '', }, argTypes: { type: { description: 'Вариант внешнего вида кнопки', control: { type: 'radio' }, options: ['primary', 'secondary', 'tertiary'], defaultValue: 'primary', }, isDisabled: { options: [true, false], control: { type: 'boolean' }, }, icon: { options: ['', ...icons], control: { type: 'select' }, }, size: { description: 'Вариант размера кнопки', options: ['M', 'S'], control: { type: 'radio' }, }, }, } const Template = (args: any) => ({ props: Object.keys(args), render() { const table = 'display: grid; gap: 30px 15px; grid-template-columns: 10% repeat(7, min-content); align-items: center; justify-items: center;' const title = 'text-align: center; margin:0 0 5px; font-size: 14px; line-height: 16px; color: #585B69; font-weight: 400;' const plate = 'display: flex; flex-direction: column; align-items: center; width: min-content; padding: 10px;' return (
Пропс `label` и `isShowTooltip` захардкоржены