Sorry, but you either have no stories or none are selected somehow.
If the problem persists, check the browser console, or the terminal you've run Storybook from.
The component failed to render properly, likely due to a configuration issue in Storybook. Here are some common causes and how you can address them:
We track planned work for Gamut components in the Gamut Board on JIRA.
Create your component as an index.tsx file in a PascalCase-named folder within its package directory, such as packages/gamut/src/ProgressBar/index.tsx.
Consider saving this recommended format as an editor snippet:
import React from 'react'; export type MyComponentProps = { /* ... */ }; export const MyComponent: React.FC<MyComponentProps> = ( { /* ... */ } ) => { // ... };
With the exception of widespread, self-documenting props such as onClick, please include a sentence cased description of the prop's intent.
React props on the component will be picked up by Storybook and added to the component's documentation story.
We prefer these be full sentences.
/** * Number of lines to limit the message to. */ limit: number;
Your component should have unit tests in a __tests__/MyComponent-test.tsx file within its directory.
Use setupRtl from gamut-tests to test it.
We generally try to unit test all component logic, with the exception of class names in components that contain other logic.
All components must have Storybook stories showing their use. See for documentation.
Please fill out the pull request template, including links to the corresponding Abstract design and JIRA ticket.
If you know your PR has breaking changes in at least one downstream repository, such as the codecademy-engineering/mono:
If your PR contains breaking changes that might affect other users, please mention them in the #frontend Slack channel.