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

tooltip not show when prop type is union #2014

Open
flixyudh opened this issue Jun 26, 2022 · 0 comments
Open

tooltip not show when prop type is union #2014

flixyudh opened this issue Jun 26, 2022 · 0 comments

Comments

@flixyudh
Copy link

flixyudh commented Jun 26, 2022

Current behavior

I just create my own React Native component, I have a component with mixing prop type like this:

fontSize: PropTypes.oneOfType([
  PropTypes.number,
  PropTypes.oneOf(["XXL", "XL", "L", "M", "S", "XS", "XXS"]),
]),

but there's no list of available type in union type.

To reproduce

you can see my styleguide.config.js, also the docs/ generated here

Expected behavior

I'd like to see something like @mitsuruog type declaration at #1621 (comment)

so in my case, i expect to see "XXL" | "XL" | "L" | "M" | "S" | "XS" | "XXS" | number

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