# Factor story boilerplate out into separate components \(\#3016\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/d8c6adf338b746bc360c4990309bd63f905088d1)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: d8c6adf338b746bc360c4990309bd63f905088d1

Requested commit: d8c6adf338b746bc360c4990309bd63f905088d1

Commit: d8c6adf338b746bc360c4990309bd63f905088d1

Tree: df384444c9671943277ad736ca6c523442878387

Author: Marshall Bowers

Committer: GitHub

## Message

```
Factor story boilerplate out into separate components (#3016)

This PR factors out the bulk of the boilerplate required to setup a
story in the storybook out into separate components.

The pattern we're using here is adapted from the "[associated
component](https://maxdeviant.com/posts/2021/react-associated-components/)"
pattern in React.

Release Notes:

- N/A
```

## Parents

- [afa704584733149639ea78034da17664bc0bc954](https://git.cafe/gitcafe/zed/commit/afa704584733149639ea78034da17664bc0bc954?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/d8c6adf338b746bc360c4990309bd63f905088d1?format=markdown)
