File tree Expand file tree Collapse file tree 1 file changed +38
-0
lines changed
docs/content/2.components Expand file tree Collapse file tree 1 file changed +38
-0
lines changed Original file line number Diff line number Diff line change 37
37
::
38
38
::
39
39
40
+ If you want more control over button's content you can define some content like an icon or another component inside the default slot.
41
+
42
+ :: code-group
43
+ :: code-block { label =" Unstyled " }
44
+ ```vue
45
+ <template>
46
+ <ListmonkForm>
47
+ <ListmonkButton>
48
+ <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24">
49
+ <path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M4 12h16m0 0l-6-6m6 6l-6 6"/>
50
+ </svg>
51
+ </ListmonkButton>
52
+ </ListmonkForm>
53
+ </template>
54
+ ```
55
+ ::
56
+
57
+ :: code-block { label =" Styled " }
58
+ ```vue
59
+ <template>
60
+ <ListmonkForm>
61
+ <ListmonkButton class="button">
62
+ <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24">
63
+ <path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M4 12h16m0 0l-6-6m6 6l-6 6"/>
64
+ </svg>
65
+ </ListmonkButton>
66
+ </ListmonkForm>
67
+ </template>
68
+
69
+ <style scoped>
70
+ .button {
71
+ ...
72
+ }
73
+ </style>
74
+ ```
75
+ ::
76
+ ::
77
+
40
78
## Props
41
79
42
80
** ListmonkButton** component has two props:
You can’t perform that action at this time.
0 commit comments