-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
13 changed files
with
372 additions
and
32 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
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
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
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
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
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
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
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,15 @@ | ||
## Sizes | ||
|
||
SgdsIcons offer a variety of sizes : `sm` , `md` , `lg` , `xl` , `2-xl` , `3-xl`. By default, the icon size is `lg` | ||
|
||
<Canvas of={IconStories.Size}> | ||
<Story of={IconStories.Size} /> | ||
</Canvas> | ||
|
||
## Color | ||
|
||
The color of the icons is inherited from its parent container | ||
|
||
<Canvas of={IconStories.Color}> | ||
<Story of={IconStories.Color} /> | ||
</Canvas> |
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,35 @@ | ||
import { html } from "lit-html"; | ||
|
||
const SizeTemplate = args => { | ||
const sizes = ["sm", "md", "lg", "xl", "2-xl", "3-xl"]; | ||
return html`${sizes.map(s => html` <sgds-icon name="house-door" size=${s}></sgds-icon> `)} `; | ||
}; | ||
|
||
const ColorTemplate = args => { | ||
const colors = ["red", "blue", "green", "purple", "pink"]; | ||
return html` | ||
${colors.map( | ||
c => html` | ||
<span style="color:${c}"> | ||
<sgds-icon name="house-door"></sgds-icon> | ||
</span> | ||
` | ||
)} | ||
`; | ||
}; | ||
|
||
export const Size = { | ||
render: SizeTemplate.bind({}), | ||
name: "Size", | ||
args: {}, | ||
parameters: {}, | ||
tags: ["!dev"] | ||
}; | ||
|
||
export const Color = { | ||
render: ColorTemplate.bind({}), | ||
name: "Color", | ||
args: {}, | ||
parameters: {}, | ||
tags: ["!dev"] | ||
}; |
Oops, something went wrong.