diff --git a/src/components/Link/MucLink.stories.ts b/src/components/Link/MucLink.stories.ts new file mode 100644 index 00000000..5d46d4f4 --- /dev/null +++ b/src/components/Link/MucLink.stories.ts @@ -0,0 +1,36 @@ +import { fn } from "@storybook/test"; + +import MucLink from "./MucLink.vue"; + +export default { + component: MucLink, + title: "MucLink", + 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-link\` component is a wrapper commponent for a standard html-a tag. + +[🔗 Patternlab-Docs](https://patternlab.muenchen.space/?p=viewall-elements-links) +`, + }, + }, + }, +}; + +export const Weather = { + args: { + label: "Generic link label", + }, +}; + +export const LinkWithIcon = { + args: { + icon: "youtube", + label: "youtube", + href: "https://www.youtube.com", + noUnderline: true, + }, +}; diff --git a/src/components/Link/MucLink.vue b/src/components/Link/MucLink.vue new file mode 100644 index 00000000..ea733250 --- /dev/null +++ b/src/components/Link/MucLink.vue @@ -0,0 +1,74 @@ + + + + + diff --git a/src/components/Link/index.ts b/src/components/Link/index.ts new file mode 100644 index 00000000..b64528d5 --- /dev/null +++ b/src/components/Link/index.ts @@ -0,0 +1,3 @@ +import MucLink from "./MucLink.vue"; + +export { MucLink }; diff --git a/src/components/index.ts b/src/components/index.ts index e8c81c4f..0b3d3c95 100644 --- a/src/components/index.ts +++ b/src/components/index.ts @@ -15,6 +15,7 @@ import { } from "./Form"; import { MucIcon } from "./Icon"; import { MucIntro } from "./Intro"; +import { MucLink } from "./Link"; export { MucButton, @@ -34,4 +35,5 @@ export { MucSelect, MucErrorList, MucIcon, + MucLink, };