Add missing select options for controls (#35178)

joshhunt/test
Alex Khomenko 4 years ago committed by GitHub
parent 2e9ad871b3
commit f683a497eb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 9
      packages/grafana-ui/src/components/ConfirmButton/ConfirmButton.story.tsx
  2. 5
      packages/grafana-ui/src/components/Forms/RadioButtonGroup/RadioButtonGroup.story.tsx

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

@ -20,9 +20,10 @@ export default {
argTypes: {
disabledOptions: {
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'] },
},
};

Loading…
Cancel
Save