11---
22title: Buttons
3+ also:
4+ components/menus: Menus
5+ components/popovers: Popovers
6+ components/reveals: Reveals
37---
48{% extends 'component.njk' %}
59{% block content %}
610 < section >
7- < h2 class ="hxSectionTitle " id ="default-button "> Default Button</ h2 >
11+ < h2 class ="hxSectionTitle " id ="demos "> Demos</ h2 >
12+ < div id ="vue-buttonDemo " class ="hxRow " v-cloak >
13+ < div class ="hxCol hxSpan-12-xs hxSpan-3-lg hxOrder-2-lg ">
14+ < h3 class ="hxSubSectionTitle "> Options</ h3 >
15+ < div class ="hxRow ">
16+ < div class ="hxCol hxSpan-12-lg hxSpan-6-xs ">
17+ < b > Variant:</ b > < br />
18+ < template v-for ="_variant in variants ">
19+ < label >
20+ < input
21+ type ="radio "
22+ name ="variant "
23+ v-model ="variant "
24+ :value ="_variant " />
25+ {% raw %}{{ _variant.label }}{% endraw %}
26+ </ label >
27+ < br />
28+ </ template >
29+ </ div >
830
9- <!-- explanation goes here -->
31+ < div class ="hxCol hxSpan-12-lg hxSpan-6-xs ">
32+ < b > Size:</ b > < br />
33+ < template v-for ="_size in sizes ">
34+ < label >
35+ < input
36+ type ="radio "
37+ name ="size "
38+ v-model ="size "
39+ :value ="_size " />
40+ {% raw %}{{ _size.label }}{% endraw %}
41+ </ label >
42+ < br />
43+ </ template >
44+ </ div >
45+ </ div >
46+ </ div >
47+ < div class ="hxCol hxSpan-12-xs hxSpan-9-lg hxOrder-1-lg ">
48+ < section >
49+ < h3 class ="hxSubSectionTitle "> Single Button</ h3 >
50+ < div class ="demo button-demo ">
51+ < button :class ="loneClasses ">
52+ {% raw %}{{size.label}} {{variant.label}}{% endraw %}
53+ </ button >
54+ </ div >
55+ {% code 'html' %}
56+ {% raw %}< button class ="{{loneClasses}} "> ...</ button > {% endraw %}
57+ {% endcode %}
58+ </ section >
1059
11- < div class ="demo ">
12- < button class ="hxBtn "> Default Button</ button >
60+ < section >
61+ < h3 class ="hxSubSectionTitle "> Button Group</ h3 >
62+ < div class ="demo button-demo ">
63+ < div :class ="groupClasses ">
64+ < button class ="hxBtn "> First</ button >
65+ < button class ="hxBtn "> Second</ button >
66+ < button class ="hxBtn ">
67+ < hx-icon type ="angle-down "> </ hx-icon >
68+ </ button >
69+ </ div >
70+ </ div >
71+ {% code 'html' %}{% raw %}
72+ < div class ="{{ groupClasses }} ">
73+ < button class ="hxBtn "> First</ button >
74+ < button class ="hxBtn "> Second</ button >
75+ < button class ="hxBtn ">
76+ < hx-icon type ="angle-down "> </ hx-icon >
77+ </ button >
78+ </ div > {% endraw %}
79+ {% endcode %}
80+ </ section >
81+ </ div >
1382 </ div >
14- {% code 'html' %}
15- < button class ="hxBtn "> Default Button</ button >
16- {% endcode %}
17- </ section >
18-
19- < section >
20- < h2 class ="hxSectionTitle " id ="primary-button "> Primary Button</ h2 >
21- < div class ="demo ">
22- < button class ="hxBtn hxBtn--primary "> Primary Button</ button >
23- </ div >
24- {% code 'html' %}
25- < button class ="hxBtn hxBtn--primary "> Primary Button</ button >
26- {% endcode %}
27- </ section >
28-
29- < section >
30- < h2 class ="hxSectionTitle " id ="link-button "> Link Button</ h2 >
31- < div class ="demo ">
32- < button class ="hxBtn hxBtn--link "> Link Button</ button >
33- </ div >
34- {% code 'html' %}
35- < button class ="hxBtn hxBtn--link "> Link Button</ button >
36- {% endcode %}
37- </ section >
38-
39- < section >
40- < h2 class ="hxSectionTitle " id ="button-sizing "> Button Sizing</ h2 >
41- < div class ="demo ">
42- < button type ="button " class ="hxBtn hxBtn--lg "> Large Button</ button >
43- < button type ="button " class ="hxBtn "> Default Button</ button >
44- < button type ="button " class ="hxBtn hxBtn--sm "> Compact Button</ button >
45- </ div >
46-
47- {% code 'html' %}
48- < button type ="button " class ="hxBtn hxBtn--lg "> Large Button</ button >
49- < button type ="button " class ="hxBtn "> Default Button</ button >
50- < button type ="button " class ="hxBtn hxBtn--sm "> Compact Button</ button >
51- {% endcode %}
5283 </ section >
5384
5485 < section data-visreg ="button-states ">
@@ -64,17 +95,17 @@ <h2 class="hxSectionTitle" id="button-states">Button States</h2>
6495 </ tr >
6596 < tr >
6697 < td > Primary</ td >
67- < td > < button class ="hxBtn hxBtn--primary "> Normal</ button > </ td >
68- < td > < button class ="hxBtn hxBtn--primary pseudo-hover "> Hover</ button > </ td >
69- < td > < button class ="hxBtn hxBtn--primary pseudo-active "> Pressed</ button > </ td >
70- < td > < button class ="hxBtn hxBtn--primary " disabled > Disabled</ button > </ td >
98+ < td > < button class ="hxBtn hxPrimary "> Normal</ button > </ td >
99+ < td > < button class ="hxBtn hxPrimary pseudo-hover "> Hover</ button > </ td >
100+ < td > < button class ="hxBtn hxPrimary pseudo-active "> Pressed</ button > </ td >
101+ < td > < button class ="hxBtn hxPrimary " disabled > Disabled</ button > </ td >
71102 </ tr >
72103 < tr >
73104 < td > Link</ td >
74- < td > < button class ="hxBtn hxBtn--link "> Normal</ button > </ td >
75- < td > < button class ="hxBtn hxBtn--link pseudo-hover "> Hover</ button > </ td >
76- < td > < button class ="hxBtn hxBtn--link pseudo-active "> Pressed</ button > </ td >
77- < td > < button class ="hxBtn hxBtn--link " disabled > Disabled</ button > </ td >
105+ < td > < button class ="hxBtn hxLink "> Normal</ button > </ td >
106+ < td > < button class ="hxBtn hxLink pseudo-hover "> Hover</ button > </ td >
107+ < td > < button class ="hxBtn hxLink pseudo-active "> Pressed</ button > </ td >
108+ < td > < button class ="hxBtn hxLink " disabled > Disabled</ button > </ td >
78109 </ tr >
79110 </ tbody >
80111 </ table >
0 commit comments