I have a component with the props (and storybook controls) level and style
As an example, should the level be set to h1 I'd like to the filter and remove this value from the array of options for style – is this possible?
Heres an example of what I'd like to encourage and discourage with the controls
<h1 class="h2">Heading</h1> // OK
<h1 class="h1">Heading</h1> // Not encouraged
How could I go about filtering the options in this component's stories file's argTypes?
argTypes: {
level: {
control: 'select',
options: ['h1', 'h2', 'h3', 'h4', 'h5', 'h6'],
},
style: {
control: 'select',
options: ['h1', 'h2', 'h3', 'h4', 'h5', 'h6'],
},
}