Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: Improve Menu selection group story #7419

Merged
merged 1 commit into from
Nov 21, 2024
Merged

Conversation

devongovett
Copy link
Member

Makes the menu selection group story a more real-world example

@rspbot
Copy link

rspbot commented Nov 21, 2024

Copy link
Member

@snowystinger snowystinger left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks!

</MenuSection>
</Menu>
</MenuTrigger>
);
};

SelectionGroups.parameters = {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

just an fyi, this is a deprecated syntax for whenever we go to storybook 8
you can make a story

const SelectionGroups = {
  render: (args) => <SelectionGroupsOriginalFunction {...args} />,
  parameters...
}

but they don't like it when you make a function the story and then set parameters on that function object

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

that syntax is unfortunate because it breaks react fast refresh (story exports are no longer valid react components). 😢

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oo... blegh

@devongovett devongovett added this pull request to the merge queue Nov 21, 2024
Merged via the queue into main with commit 56e5757 Nov 21, 2024
30 checks passed
@devongovett devongovett deleted the selectiongroup-story branch November 21, 2024 05:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants