docbrown/app/javascript/articles/__stories__/LoadingArticle.stories.jsx
Lisa Sy ea00c808bd
Storybook: Add DocsPage and test out static content (#11397)
* Update naming of guidelines section and improve Introduction page

* Add Docs

* Add docs

* Install Docs add-on

- Rename top-level folders and sort manually
- Add MDX static pages

* Updated all Storybook addons to 6.1.3 except for notes as it's currently 5.3.21

* Fixed naming of section for the select component.

* Updated yarn.lock file.

* Added missing dependency @storybook/addon-docs

Co-authored-by: Nick Taylor <nick@dev.to>
2020-12-02 09:56:38 -08:00

22 lines
607 B
JavaScript

import { h } from 'preact';
import { LoadingArticle } from '..';
import '../../../assets/stylesheets/articles.scss';
export default {
title: 'App Components/Article Loading',
component: LoadingArticle,
// Using an arbitrary width here. This is roughly the size of articles in Storybook
decorators: [(story) => <div style={{ minWidth: '509px' }}>{story()}</div>],
};
export const DefaultArticle = () => <LoadingArticle />;
DefaultArticle.story = {
name: 'default',
};
export const FeaturedLoading = () => <LoadingArticle version="featured" />;
FeaturedLoading.story = {
name: 'featured',
};