Skip to content

Commit

Permalink
docs(storybook): use include instead of hide for selected controls
Browse files Browse the repository at this point in the history
  • Loading branch information
mgadewoll committed May 2, 2024
1 parent 6142110 commit 1dd28bc
Showing 1 changed file with 5 additions and 18 deletions.
23 changes: 5 additions & 18 deletions src/components/selectable/selectable.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -107,30 +107,17 @@ export const Playground: Story = {
};

export const WithTooltip: Story = {
parameters: {
controls: {
include: ['options', 'singleSelection', 'searchable'],
},
},
args: {
options: options.map((option) => ({ ...option, ...toolTipProps })),
searchable: false,
},
render: ({ ...args }: EuiSelectableProps) => <StatefulSelectable {...args} />,
};
// hide props as they are not relevant for testing the story args
hideStorybookControls(WithTooltip, [
'allowExclusions',
'children',
'onChange',
'isLoading',
'renderOption',
'emptyMessage',
'errorMessage',
'height',
'isPreFiltered',
'listProps',
'loadingMessage',
'noMatchesMessage',
'onActiveOptionChange',
'selectableScreenReaderText',
'searchProps',
]);

const StatefulSelectable = ({
options,
Expand Down

0 comments on commit 1dd28bc

Please sign in to comment.