@@ -26,80 +26,48 @@ import '@patternfly/elements/pf-icon/pf-icon.js';
2626{% endrenderOverview %}
2727
2828{% band header="Usage" %}
29- #### Link variant
30- <pf-button variant =" link " id =" test " >
31- <svg fill =" currentColor " style =" vertical-align :-0.125em " height =" 1em " width =" 1em " viewBox =" 0 0 512 512 " aria-hidden =" true " >
32- <path d="M256 8C119 8 8 119 8 256s111 248 248 248 248-111 248-248S393 8 256 8zm144 276c0 6.6-5.4 12-12 12h-92v92c0 6.6-5.4 12-12 12h-56c-6.6 0-12-5.4-12-12v-92h-92c-6.6 0-12-5.4-12-12v-56c0-6.6 5.4-12 12-12h92v-92c0-6.6 5.4-12 12-12h56c6.6 0 12 5.4 12 12v92h92c6.6 0 12 5.4 12 12v56z"></path>
33- </svg >
34- Link
35- </pf-button >
36- <pf-button variant =" link " icon-set =" patternfly " icon =" arrow " icon-position =" right " >Link</pf-button >
37- <pf-button variant =" link " inline >Inline Link</pf-button >
38- <pf-button variant =" link " danger >Danger Link</pf-button >
39-
40- {% htmlexample %}
41- ``` html
42- <pf-button variant =" link" id =" test" >
43- <svg fill =" currentColor" style =" vertical-align :-0.125em " height =" 1em" width =" 1em" viewBox =" 0 0 512 512" aria-hidden =" true" >
44- <path d =" M256 8C119 8 8 119 8 256s111 248 248 248 248-111 248-248S393 8 256 8zm144 276c0 6.6-5.4 12-12 12h-92v92c0 6.6-5.4 12-12 12h-56c-6.6 0-12-5.4-12-12v-92h-92c-6.6 0-12-5.4-12-12v-56c0-6.6 5.4-12 12-12h92v-92c0-6.6 5.4-12 12-12h56c6.6 0 12 5.4 12 12v92h92c6.6 0 12 5.4 12 12v56z" ></path >
45- </svg >
46- Link
47- </pf-button >
48- <pf-button variant =" link" icon-set =" patternfly" icon =" arrow" icon-position =" right" >Link</pf-button >
49- <pf-button variant =" link" inline >Inline Link</pf-button >
50- <pf-button variant =" link" danger >Danger Link</pf-button >
51- ```
52- {% endhtmlexample %}
53-
54- #### Plain button
55-
56- <pf-button plain >
57- <svg aria-label =" Action " fill =" currentColor " height =" 1em " width =" 1em " viewBox =" 0 0 352 512 " >
58- <path d="M242.72 256l100.07-100.07c12.28-12.28 12.28-32.19 0-44.48l-22.24-22.24c-12.28-12.28-32.19-12.28-44.48 0L176 189.28 75.93 89.21c-12.28-12.28-32.19-12.28-44.48 0L9.21 111.45c-12.28 12.28-12.28 32.19 0 44.48L109.28 256 9.21 356.07c-12.28 12.28-12.28 32.19 0 44.48l22.24 22.24c12.28 12.28 32.2 12.28 44.48 0L176 322.72l100.07 100.07c12.28 12.28 32.2 12.28 44.48 0l22.24-22.24c12.28-12.28 12.28-32.19 0-44.48L242.72 256z"></path>
59- </svg >
60- </pf-button >
61-
62- {% htmlexample %}
63- ``` html
64- <pf-button plain >
65- <svg aria-label =" Action" fill =" currentColor" height =" 1em" width =" 1em" viewBox =" 0 0 352 512" >
66- <path d =" M242.72 256l100.07-100.07c12.28-12.28 12.28-32.19 0-44.48l-22.24-22.24c-12.28-12.28-32.19-12.28-44.48 0L176 189.28 75.93 89.21c-12.28-12.28-32.19-12.28-44.48 0L9.21 111.45c-12.28 12.28-12.28 32.19 0 44.48L109.28 256 9.21 356.07c-12.28 12.28-12.28 32.19 0 44.48l22.24 22.24c12.28 12.28 32.2 12.28 44.48 0L176 322.72l100.07 100.07c12.28 12.28 32.2 12.28 44.48 0l22.24-22.24c12.28-12.28 12.28-32.19 0-44.48L242.72 256z" ></path >
67- </svg >
68- </pf-button >
69- ```
70- {% endhtmlexample %}
71-
72- #### Control variant
73-
74- <pf-button variant =" control " >Control</pf-button >
75- <pf-button variant =" control " >
76- <svg aria-label =" Copy " fill =" currentColor " height =" 1em " width =" 1em " viewBox =" 0 0 448 512 " >
77- <path d="M320 448v40c0 13.255-10.745 24-24 24H24c-13.255 0-24-10.745-24-24V120c0-13.255 10.745-24 24-24h72v296c0 30.879 25.121 56 56 56h168zm0-344V0H152c-13.255 0-24 10.745-24 24v368c0 13.255 10.745 24 24 24h272c13.255 0 24-10.745 24-24V128H344c-13.2 0-24-10.8-24-24zm120.971-31.029L375.029 7.029A24 24 0 0 0 358.059 0H352v96h96v-6.059a24 24 0 0 0-7.029-16.97z"/>
78- </svg >
79- </pf-button >
80-
81- {% htmlexample %}
82- ``` html
83- <pf-button variant =" control" >Control</pf-button >
84- <pf-button variant =" control" >
85- <svg aria-label =" Copy" fill =" currentColor" height =" 1em" width =" 1em" viewBox =" 0 0 448 512" >
86- <path d =" M320 448v40c0 13.255-10.745 24-24 24H24c-13.255 0-24-10.745-24-24V120c0-13.255 10.745-24 24-24h72v296c0 30.879 25.121 56 56 56h168zm0-344V0H152c-13.255 0-24 10.745-24 24v368c0 13.255 10.745 24 24 24h272c13.255 0 24-10.745 24-24V128H344c-13.2 0-24-10.8-24-24zm120.971-31.029L375.029 7.029A24 24 0 0 0 358.059 0H352v96h96v-6.059a24 24 0 0 0-7.029-16.97z" />
87- </svg >
88- </pf-button >
89- ```
90- {% endhtmlexample %}
91-
92- <h3 >Size</h3 >
93- <pf-button >Medium Button</pf-button >
94- <pf-button size =" large " >Large Button</pf-button >
95-
96- {% htmlexample %}
97- ``` html
98- <pf-button >Medium Button</pf-button >
99- <pf-button size =" large" >Large Button</pf-button >
100- ```
101- {% endhtmlexample %}
102-
29+ ### Link variant
30+ {% htmlexample %}
31+ <pf-button variant =" link " id =" test " >
32+ <svg fill="currentColor"
33+ style="vertical-align:-0.125em"
34+ height="1em"
35+ width="1em"
36+ viewBox="0 0 512 512"
37+ aria-hidden="true">
38+ <path d="M256 8C119 8 8 119 8 256s111 248 248 248 248-111 248-248S393 8 256 8zm144 276c0 6.6-5.4 12-12 12h-92v92c0 6.6-5.4 12-12 12h-56c-6.6 0-12-5.4-12-12v-92h-92c-6.6 0-12-5.4-12-12v-56c0-6.6 5.4-12 12-12h92v-92c0-6.6 5.4-12 12-12h56c6.6 0 12 5.4 12 12v92h92c6.6 0 12 5.4 12 12v56z"/>
39+ </svg>
40+ Link
41+ </pf-button >
42+ <pf-button variant =" link " icon-set =" patternfly " icon =" arrow " icon-position =" right " >Link</pf-button >
43+ <pf-button variant =" link " inline >Inline Link</pf-button >
44+ <pf-button variant =" link " danger >Danger Link</pf-button >
45+ {% endhtmlexample %}
46+
47+ ### Plain button
48+ {% htmlexample %}
49+ <pf-button plain >
50+ <svg aria-label="Action" fill="currentColor" height="1em" width="1em" viewBox="0 0 352 512">
51+ <path d="M242.72 256l100.07-100.07c12.28-12.28 12.28-32.19 0-44.48l-22.24-22.24c-12.28-12.28-32.19-12.28-44.48 0L176 189.28 75.93 89.21c-12.28-12.28-32.19-12.28-44.48 0L9.21 111.45c-12.28 12.28-12.28 32.19 0 44.48L109.28 256 9.21 356.07c-12.28 12.28-12.28 32.19 0 44.48l22.24 22.24c12.28 12.28 32.2 12.28 44.48 0L176 322.72l100.07 100.07c12.28 12.28 32.2 12.28 44.48 0l22.24-22.24c12.28-12.28 12.28-32.19 0-44.48L242.72 256z"></path>
52+ </svg>
53+ </pf-button >
54+ {% endhtmlexample %}
55+
56+ ### Control variant
57+ {% htmlexample %}
58+ <pf-button variant =" control " >Control</pf-button >
59+ <pf-button variant =" control " >
60+ <svg aria-label="Copy" fill="currentColor" height="1em" width="1em" viewBox="0 0 448 512">
61+ <path d="M320 448v40c0 13.255-10.745 24-24 24H24c-13.255 0-24-10.745-24-24V120c0-13.255 10.745-24 24-24h72v296c0 30.879 25.121 56 56 56h168zm0-344V0H152c-13.255 0-24 10.745-24 24v368c0 13.255 10.745 24 24 24h272c13.255 0 24-10.745 24-24V128H344c-13.2 0-24-10.8-24-24zm120.971-31.029L375.029 7.029A24 24 0 0 0 358.059 0H352v96h96v-6.059a24 24 0 0 0-7.029-16.97z"/>
62+ </svg>
63+ </pf-button >
64+ {% endhtmlexample %}
65+
66+ ### Size
67+ {% htmlexample %}
68+ <pf-button >Medium Button</pf-button >
69+ <pf-button size =" large " >Large Button</pf-button >
70+ {% endhtmlexample %}
10371{% endband %}
10472
10573{% renderSlots %}{% endrenderSlots %}
0 commit comments