ithaka / pharos

JSTOR's design system
https://pharos.jstor.org
MIT License
123 stars 16 forks source link

React Storybook shows `undefined` for composed components #812

Open daneah opened 2 months ago

daneah commented 2 months ago

Expected behavior

When a component is composed of other components, Storybook shows a tabbed interface for the resulting component and each of its constituent components.

Screenshot 2024-09-01 at 08 18 47

Actual behavior

In the React Storybook, the resulting component shows as undefined, and for some components can't automatically generate the controls available.

Screenshot 2024-09-01 at 08 19 51

Steps to reproduce the issue

  1. Go to Storybook
  2. Visit a composed component like RadioGroup or InputGroup in the React section
  3. Observe the tab title and (for some components) the lack of controls