|
1 | 1 | --- |
2 | 2 | title: Button |
3 | 3 | assets: |
4 | | - - bootstrap.helix.css |
| 4 | + - helix-ui.css |
5 | 5 | --- |
6 | 6 | {% extends 'component.njk' %} |
7 | 7 | {% block content %} |
8 | 8 | <!-- explanation goes here --> |
9 | 9 |
|
10 | 10 | <section> |
11 | | - <h2 class="hxSectionTitle" id="size-variants">Size Variants</h2> |
| 11 | + <h2 class="hxSectionTitle" id="default-button">Default Button</h2> |
12 | 12 |
|
13 | 13 | <!-- explanation goes here --> |
14 | 14 |
|
15 | 15 | <div class="demo"> |
16 | | - <p> |
17 | | - <button type="button" class="btn btn-default btn-lg">Large Button</button> |
18 | | - <button type="button" class="btn btn-default">Default Button</button> |
19 | | - <button type="button" class="btn btn-default btn-sm">Compact Button</button> |
20 | | - </p> |
| 16 | + <button class="hxBtn">Default Button</button> |
21 | 17 | </div> |
| 18 | + {% code 'html' %} |
| 19 | + <button class="hxBtn">Default Button</button> |
| 20 | + {% endcode %} |
22 | 21 | </section> |
23 | 22 |
|
24 | 23 | <section> |
25 | | - <h2 class="hxSectionTitle" id="default">Default Buttons</h2> |
| 24 | + <h2 class="hxSectionTitle" id="primary-button">Primary Button</h2> |
26 | 25 |
|
27 | 26 | <!-- explanation goes here --> |
28 | 27 |
|
29 | 28 | <div class="demo"> |
30 | | - <p> |
31 | | - <button class="btn btn-default">Default Button</button> |
32 | | - <button class="btn btn-default" disabled>Default Button (disabled)</button> |
33 | | - </p> |
| 29 | + <button class="hxBtn hxBtn--primary">Primary Button</button> |
34 | 30 | </div> |
| 31 | + {% code 'html' %} |
| 32 | + <button class="hxBtn hxBtn--primary">Primary Button</button> |
| 33 | + {% endcode %} |
35 | 34 | </section> |
36 | 35 |
|
37 | 36 | <section> |
38 | | - <h2 class="hxSectionTitle" id="default">Primary Buttons</h2> |
| 37 | + <h2 class="hxSectionTitle" id="link-button">Link Button</h2> |
39 | 38 |
|
40 | 39 | <!-- explanation goes here --> |
41 | 40 |
|
42 | 41 | <div class="demo"> |
43 | | - <p> |
44 | | - <button class="btn btn-primary">Primary Button</button> |
45 | | - <button class="btn btn-primary" disabled>Primary Button (disabled)</button> |
46 | | - </p> |
| 42 | + <button class="hxBtn hxBtn--link">Link Button</button> |
47 | 43 | </div> |
| 44 | + {% code 'html' %} |
| 45 | + <button class="hxBtn hxBtn--link">Link Button</button> |
| 46 | + {% endcode %} |
48 | 47 | </section> |
49 | 48 |
|
50 | 49 | <section> |
51 | | - <h2 class="hxSectionTitle" id="link-buttons">Link Buttons</h2> |
52 | | - |
| 50 | + <h2 class="hxSectionTitle" id="button-sizing">Button Sizing</h2> |
| 51 | + |
53 | 52 | <!-- explanation goes here --> |
54 | 53 |
|
55 | 54 | <div class="demo"> |
56 | | - <p> |
57 | | - <button class="btn btn-link">Link Button</button> |
58 | | - <button class="btn btn-link" disabled>Link Button (disabled)</button> |
59 | | - </p> |
| 55 | + <button type="button" class="hxBtn hxBtn--lg">Large Button</button> |
| 56 | + <button type="button" class="hxBtn">Default Button</button> |
| 57 | + <button type="button" class="hxBtn hxBtn--sm">Compact Button</button> |
60 | 58 | </div> |
| 59 | + |
| 60 | + {% code 'html' %} |
| 61 | + <button type="button" class="hxBtn hxBtn--lg">Large Button</button> |
| 62 | + <button type="button" class="hxBtn">Default Button</button> |
| 63 | + <button type="button" class="hxBtn hxBtn--sm">Compact Button</button> |
| 64 | + {% endcode %} |
| 65 | +</section> |
| 66 | + |
| 67 | +<section data-visreg="button-states"> |
| 68 | + <h2 class="hxSectionTitle" id="button-states">Button States</h2> |
| 69 | + <table class="table"> |
| 70 | + <tbody> |
| 71 | + <tr> |
| 72 | + <td>Default</td> |
| 73 | + <td><button class="hxBtn">Normal</button></td> |
| 74 | + <td><button class="hxBtn pseudo-hover">Hover</button></td> |
| 75 | + <td><button class="hxBtn pseudo-active">Pressed</button></td> |
| 76 | + <td><button class="hxBtn" disabled>Disabled</button></td> |
| 77 | + </tr> |
| 78 | + <tr> |
| 79 | + <td>Primary</td> |
| 80 | + <td><button class="hxBtn hxBtn--primary">Normal</button></td> |
| 81 | + <td><button class="hxBtn hxBtn--primary pseudo-hover">Hover</button></td> |
| 82 | + <td><button class="hxBtn hxBtn--primary pseudo-active">Pressed</button></td> |
| 83 | + <td><button class="hxBtn hxBtn--primary" disabled>Disabled</button></td> |
| 84 | + </tr> |
| 85 | + <tr> |
| 86 | + <td>Link</td> |
| 87 | + <td><button class="hxBtn hxBtn--link">Normal</button></td> |
| 88 | + <td><button class="hxBtn hxBtn--link pseudo-hover">Hover</button></td> |
| 89 | + <td><button class="hxBtn hxBtn--link pseudo-active">Pressed</button></td> |
| 90 | + <td><button class="hxBtn hxBtn--link" disabled>Disabled</button></td> |
| 91 | + </tr> |
| 92 | + </tbody> |
| 93 | + </table> |
| 94 | +</section> |
| 95 | + |
| 96 | +<section> |
| 97 | + <h2 class="hxSectionTitle" id="attributes">Attributes</h2> |
| 98 | + <dl> |
| 99 | + <dt>disabled</dt> |
| 100 | + <dd>Boolean attribute. When present, prevents button interaction.</dd> |
| 101 | + </dl> |
61 | 102 | </section> |
62 | 103 | {% endblock %} |
0 commit comments