Skip to content

Commit

Permalink
feat(status): 🔖 add status to Icon and its Gallery (attempt)
Browse files Browse the repository at this point in the history
  • Loading branch information
RubenSibon committed May 15, 2024
1 parent ff569b3 commit 66e2401
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
4 changes: 4 additions & 0 deletions storybook/src/components/Icon/Icon.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

import { Heading, Icon } from '@amsterdam/design-system-react/src'
import * as Icons from '@amsterdam/design-system-react-icons'
import { BADGE } from '@geometricpanda/storybook-addon-badges'
import { Meta, StoryObj } from '@storybook/react'

const meta = {
Expand All @@ -19,6 +20,9 @@ const meta = {
mapping: Icons,
},
},
parameters: {
badges: [BADGE.BETA],
},
} satisfies Meta<typeof Icon>

export default meta
Expand Down
5 changes: 4 additions & 1 deletion storybook/src/docs/icon-gallery.docs.mdx
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
import { BADGE } from "@geometricpanda/storybook-addon-badges";
import { Meta } from "@storybook/blocks";
import { AmsterdamIconGallery } from "./components/AmsterdamIconGallery";

<Meta title="Docs/Assets/Icons" />
{/* Below "parameters" prop does not seem to work. Not sure how to implement badges on our doc stories. Any ideas? */}

<Meta title="Docs/Assets/Icons" parameters={{ badges: [BADGE.BETA] }} />

# Icons

Expand Down

0 comments on commit 66e2401

Please sign in to comment.