Add missing select options for controls (#35178)

This commit is contained in:
Alex Khomenko 2021-06-04 12:28:27 +03:00 committed by GitHub
parent 2e9ad871b3
commit f683a497eb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 4 deletions

View File

@ -33,8 +33,13 @@ export default {
closeOnConfirm: true, closeOnConfirm: true,
}, },
argTypes: { argTypes: {
confirmVariant: { control: { type: 'select' } }, confirmVariant: {
size: { control: { type: 'select' } }, control: {
type: 'select',
},
options: ['primary', 'secondary', 'destructive', 'link'],
},
size: { control: { type: 'select' }, options: ['xs', 'sm', 'md', 'lg'] },
}, },
} as Meta; } as Meta;

View File

@ -20,9 +20,10 @@ export default {
argTypes: { argTypes: {
disabledOptions: { disabledOptions: {
name: 'Disabled item', name: 'Disabled item',
control: { type: 'select', options: ['', 'graphite', 'prometheus', 'elastic'] }, control: { type: 'select' },
options: ['', 'graphite', 'prometheus', 'elastic'],
}, },
size: { control: { type: 'select' } }, size: { control: { type: 'select' }, options: ['xs', 'sm', 'md', 'lg'] },
}, },
}; };