Skip to content

Commit

Permalink
[storybook] Only show hasEmptyLabelSpace control if label field is …
Browse files Browse the repository at this point in the history
…empty
  • Loading branch information
cee-chen committed Aug 19, 2024
1 parent b0cb928 commit f2bb478
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,9 @@ export default meta;
type Story = StoryObj<EuiFormRowProps>;

export const Playground: Story = {
argTypes: {
hasEmptyLabelSpace: { if: { arg: 'label', truthy: false } },
},
args: {
children: <EuiFieldText />,
label: 'Text field label',
Expand Down

0 comments on commit f2bb478

Please sign in to comment.