Skip to content

Commit

Permalink
feat: add collapse in icon gallery
Browse files Browse the repository at this point in the history
  • Loading branch information
mauriciomutte committed Jul 18, 2023
1 parent 13c407f commit ab5c9e9
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 19 deletions.
11 changes: 11 additions & 0 deletions apps/docs/.storybook/preview-body.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<style>
.icon-gallery > summary {
border-bottom: 1px solid #0002;
cursor: pointer;
font-family: 'Nunito Sans', sans-serif;
font-size: 24px;
font-weight: 600;
margin-bottom: 16px;
user-select: none;
}
</style>
40 changes: 21 additions & 19 deletions apps/docs/stories/1_4_Icons.stories.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -8,22 +8,24 @@ import { mdiIconsList, customIconsList } from '../utils/icon-list'

The icons library is a collection of icons that can be used in your components. It is based on the [Material Design Icons](https://materialdesignicons.com/) library. But we can also add our own custom icons.

## Custom Icons

<IconGallery>
{customIconsList?.map((icon) => (
<IconItem name={icon}>
<atom-icon icon={icon}></atom-icon>
</IconItem>
))}
</IconGallery>

## Material Design Icons

<IconGallery>
{mdiIconsList?.map((icon) => (
<IconItem name={icon}>
<atom-icon icon={icon}></atom-icon>
</IconItem>
))}
</IconGallery>
<details class="icon-gallery">
<summary>Custom Icons</summary>
<IconGallery>
{customIconsList?.map((icon) => (
<IconItem name={icon}>
<atom-icon icon={icon}></atom-icon>
</IconItem>
))}
</IconGallery>
</details>

<details class="icon-gallery">
<summary>Material Design Icons</summary>
<IconGallery>
{mdiIconsList?.map((icon) => (
<IconItem name={icon}>
<atom-icon icon={icon}></atom-icon>
</IconItem>
))}
</IconGallery>
</details>

0 comments on commit ab5c9e9

Please sign in to comment.