Skip to content

Commit

Permalink
feat(icons-react): add elements section & icon next stories (#9147)
Browse files Browse the repository at this point in the history
* feat: add elements section & icon stories

* fix: lint styles

Co-authored-by: Josh Black <[email protected]>
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
  • Loading branch information
3 people authored Sep 9, 2021
1 parent cf503d6 commit c1e34b2
Show file tree
Hide file tree
Showing 4 changed files with 42 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/carbon-react/src/components/Grid/Grid.stories.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import React from 'react';
import mdx from './Grid.mdx';

export default {
title: 'Components/Grid',
title: 'Elements/Grid',
component: Grid,
subcomponents: {
Column,
Expand Down
34 changes: 34 additions & 0 deletions packages/carbon-react/src/components/Icons/Icons.stories.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
/**
* Copyright IBM Corp. 2016, 2018
*
* This source code is licensed under the Apache-2.0 license found in the
* LICENSE file in the root directory of this source tree.
*/
import React from 'react';
import { Bee, Bicycle, ChevronUp } from '@carbon/icons-react/next';
import './Icons.stories.scss';

export default {
title: 'Elements/Icons',
};

export const Default = () => {
return (
<>
<section>
<h2>16 pixel (default)</h2>
<Bee />
</section>

<section>
<h2>20 pixel</h2>
<Bicycle size={20} />
</section>

<section>
<h2>32 pixel</h2>
<ChevronUp size={32} />
</section>
</>
);
};
6 changes: 6 additions & 0 deletions packages/carbon-react/src/components/Icons/Icons.stories.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
section {
display: flex;
width: 10rem;
justify-content: space-between;
margin: 2rem;
}
2 changes: 1 addition & 1 deletion packages/carbon-react/src/components/Plex/Plex.stories.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
import React from 'react';

export default {
title: 'Components/Plex',
title: 'Elements/Plex',
argTypes: {
fontWeight: {
defaultValue: 'Regular',
Expand Down

0 comments on commit c1e34b2

Please sign in to comment.