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

[addon-docs] How Props component works? #8013

Closed
patrickteivas opened this issue Sep 6, 2019 · 3 comments
Closed

[addon-docs] How Props component works? #8013

patrickteivas opened this issue Sep 6, 2019 · 3 comments

Comments

@patrickteivas
Copy link
Contributor

Badge.stories.mdx content.

import { Story, Preview, Meta, Props } from '@storybook/addon-docs/blocks';
import Badge from '../components/Badge;

<Props of={Badge} />

Badge.vue props section.

export default {
  props: {
    url: {
      type: String,
      default: '',
      required: true,
    },
  },
};

Gives me
image

Found no examples of proper Props component usage.
Do I need to manually write them or it's supposed to take them automatically?

@shilman
Copy link
Member

shilman commented Sep 6, 2019

@patrickteivas
Copy link
Contributor Author

Thanks for the reply! Think, now the issue can be closed.

@MichaelTrilford-Airwallex

Just FYI, the documentation around import { Props } from '@storybook/addon-docs/blocks' is super hard to find.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants