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

Add a storybook control to match onSth controls to an action #8

Open
1 task
maany opened this issue Feb 1, 2024 · 0 comments
Open
1 task

Add a storybook control to match onSth controls to an action #8

maany opened this issue Feb 1, 2024 · 0 comments
Labels
enhancement New feature or request question Further information is requested

Comments

@maany
Copy link
Contributor

maany commented Feb 1, 2024

Description

Components that have args like onClick, onChange etc, should have a storybook control corresponding to an action
https://storybook.js.org/docs/essentials/actions

Motivation

No response

Change

controls: {
      matchers: {
        color: /(background|color)$/i,
        date: /Date$/i,
// ADD THIS PART
        parameters: {
          actions: { argTypesRegex: '^on.*' },
        },
      },

See parameters: {

Additional Information

  • The API needs to be changed.
@maany maany added enhancement New feature or request question Further information is requested labels Feb 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request question Further information is requested
Projects
None yet
Development

No branches or pull requests

1 participant