diff --git a/src/components/Icon/MucIcon.stories.ts b/src/components/Icon/MucIcon.stories.ts new file mode 100644 index 00000000..4766a5c6 --- /dev/null +++ b/src/components/Icon/MucIcon.stories.ts @@ -0,0 +1,35 @@ +import { fn } from "@storybook/test"; + +import MucIcon from "./MucIcon.vue"; + +export default { + component: MucIcon, + title: "MucIcon", + tags: ["autodocs"], + // 👇 Use `fn` to spy on the onClick arg, which will appear in the actions panel once invoked + args: { onClick: fn() }, + parameters: { + docs: { + description: { + component: `The \`muc-icon\` component is a wrapper commponent for all icons in the patternlab. + +[🔗 Patternlab-Docs](https://patternlab.muenchen.space/?p=viewall-guidelines-icons) +[🖼 Iconography](https://it-at-m.github.io/muc-patternlab-vue/?path=/docs/iconography--docs) +`, + }, + }, + }, +}; + +export const Weather = { + args: { + icon: "weather", + }, +}; + +export const Youtube = { + args: { + icon: "youtube", + color: "red", + }, +}; diff --git a/src/components/Icon/MucIcon.vue b/src/components/Icon/MucIcon.vue new file mode 100644 index 00000000..d607e631 --- /dev/null +++ b/src/components/Icon/MucIcon.vue @@ -0,0 +1,23 @@ + + + diff --git a/src/components/Icon/index.ts b/src/components/Icon/index.ts new file mode 100644 index 00000000..f1b8b80c --- /dev/null +++ b/src/components/Icon/index.ts @@ -0,0 +1,3 @@ +import MucIcon from "./MucIcon.vue"; + +export { MucIcon }; diff --git a/src/components/index.ts b/src/components/index.ts index c7e0f683..de7fe526 100644 --- a/src/components/index.ts +++ b/src/components/index.ts @@ -3,6 +3,7 @@ import { MucButton } from "./Button"; import { MucCallout } from "./Callout"; import { MucCard, MucCardContainer } from "./Card"; import { MucComment, MucCommentText } from "./Comment/"; +import { MucIcon } from "./Icon"; import { MucIntro } from "./Intro"; export { @@ -14,4 +15,5 @@ export { MucCardContainer, MucComment, MucCommentText, + MucIcon, };