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

Update documentation that setWcStorybookHelpersConfig is needed in preview.js #79

Open
wimdeblauwe opened this issue Sep 25, 2024 · 0 comments

Comments

@wimdeblauwe
Copy link

I am just getting started with web components and Storybook. I had a bit of trouble to figure out why the different options of my custom type was not shown in storybook. There was no select, there was an input field.

After I found https://github.com/break-stuff/wc-storybook-helpers/blob/main/demo/lit-app-v8/.storybook/preview.ts I saw that I needed to add this to preview.ts:

import {setWcStorybookHelpersConfig} from "wc-storybook-helpers";

setWcStorybookHelpersConfig({
  hideArgRef: false,
  typeRef: "expandedType",
  renderDefaultValues: false
});

After adding this, Storybook renders the select nicely.

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

No branches or pull requests

1 participant