HSDS: React
Fancy
React Utils
Search…
HSDS: React
Quick start
Testing
Reporting Issues
Contributing
Getting started
Creating a component
Styling
Write a story
Writing tests
Adding documentation
Submitting for review
Publishing a release
Powered By
GitBook
Write a story
In this guide, we'll walk through render our newly
styled
custom
Strong
component
in
Storybook
.
Initial files
The first thing we'll need to do is create a dedicated
Strong
directory under
stories/
:
1
hsds-react/
2
└── stories/
3
└── Strong/
4
└── Strong.stories.mdx
Copied!
Writing stories
Next
Let's
write some tests
to make sure
Strong
works as we expect it to. (Just in case!)
See also
Storybook
Previous
Styling
Next
Writing tests
Last modified
1yr ago
Copy link
Contents
Initial files
Next
See also