Skip to content

How can I disable a control for the table but not for the docs? #29056

Answered by Marklb
StephenSHorton asked this question in Help
Discussion options

You must be logged in to vote

I think those tables are the same component and don't have much configuration based on where used. If you are just wanting to disable the control, use control: false.

https://storybook.js.org/docs/essentials/controls#disable-controls-for-specific-properties

{
  ...,
  argTypes: {
    myArg: {
      control: false,
    },
  },
}

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by StephenSHorton
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants