File tree Expand file tree Collapse file tree 1 file changed +35
-0
lines changed Expand file tree Collapse file tree 1 file changed +35
-0
lines changed Original file line number Diff line number Diff line change 1+ import { fn } from "@storybook/test" ;
2+
3+ import MucLink from "./MucLink.vue" ;
4+
5+ export default {
6+ component : MucLink ,
7+ title : "MucLink" ,
8+ tags : [ "autodocs" ] ,
9+ // 👇 Use `fn` to spy on the onClick arg, which will appear in the actions panel once invoked
10+ args : { onClick : fn ( ) } ,
11+ parameters : {
12+ docs : {
13+ description : {
14+ component : `The \`muc-link\` component is a wrapper commponent for a standard html-a tag.
15+
16+ [🔗 Patternlab-Docs](https://patternlab.muenchen.space/?p=viewall-elements-links)
17+ ` ,
18+ } ,
19+ } ,
20+ } ,
21+ } ;
22+
23+ export const Weather = {
24+ args : {
25+ label : "Generic link label" ,
26+ } ,
27+ } ;
28+
29+ export const LinkWithIcon = {
30+ args : {
31+ icon : "youtube" ,
32+ label : "youtube" ,
33+ noUnderline : true ,
34+ } ,
35+ } ;
You can’t perform that action at this time.
0 commit comments