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 children to CanvasProps #20451

Merged
merged 1 commit into from
Jan 13, 2023
Merged

add children to CanvasProps #20451

merged 1 commit into from
Jan 13, 2023

Conversation

Jacob-mns
Copy link
Contributor

@Jacob-mns Jacob-mns commented Dec 30, 2022

Issue:
The children prop has been removed from react.FC in React 18 ref. this causes the following TS error when using the Canvas component with children:
TS2559: Type '{ children: Element[]; }' has no properties in common with type 'IntrinsicAttributes'

What I did

Added children?: ReactNode to CanvasProps

How to test

  • Is this testable with Jest or Chromatic screenshots?
  • Does this need a new example in the kitchen sink apps?
  • Does this need an update to the documentation?

If your answer is yes to any of these, please make sure to include it in your PR.

@ndelangen ndelangen merged commit 13edba5 into storybookjs:next Jan 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants