-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(icons-react): add elements section & icon next stories (#9147)
* 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
1 parent
cf503d6
commit c1e34b2
Showing
4 changed files
with
42 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
34 changes: 34 additions & 0 deletions
34
packages/carbon-react/src/components/Icons/Icons.stories.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
6
packages/carbon-react/src/components/Icons/Icons.stories.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters