|
| 1 | +--- |
| 2 | +title: Stepper |
| 3 | +also: |
| 4 | + components/accordions: Accordions |
| 5 | + elements/hx-accordion-panel: <hx-accordion-panel> |
| 6 | + elements/hx-accordion: <hx-accordion> |
| 7 | +--- |
| 8 | +{% extends 'component.njk' %} |
| 9 | +{% block content %} |
| 10 | + <div class="hxAlert hxAlert--warning"> |
| 11 | + <div class="hxAlert__icon"> |
| 12 | + <hx-icon type="exclamation-diamond"></hx-icon> |
| 13 | + </div> |
| 14 | + <div class="hxAlert__text"> |
| 15 | + <span class="hxAlert__status">BETA</span> |
| 16 | + This component is not recommended for production use. |
| 17 | + </div> |
| 18 | + </div> |
| 19 | + <br /> |
| 20 | + <section id="vue-stepperDemo"> |
| 21 | + <h2 id="demo">Basic Stepper</h2> |
| 22 | + <div class="demo demo-stepper"> |
| 23 | + <hx-accordion |
| 24 | + class="beta-hxStepper" |
| 25 | + current-panel="0" |
| 26 | + ref="accordion"> |
| 27 | + |
| 28 | + <hx-accordion-panel> |
| 29 | + <header slot="header"> |
| 30 | + <span class="beta-hxStepCounter"></span> |
| 31 | + <span class="beta-hxStepLabel">Account</span> |
| 32 | + <span class="beta-hxStepValue">Acme Corp Inc.</span> |
| 33 | + </header> |
| 34 | + <div class="hxBox-md"> |
| 35 | + <p> |
| 36 | + <em>Content Goes Here</em> |
| 37 | + </p> |
| 38 | + <p class="beta-hxSubmitButtons"> |
| 39 | + <button class="hxBtn hxPrimary" @click="nextStep">Next Step</button> |
| 40 | + <button class="hxBtn hxLink">Cancel</button> |
| 41 | + </p> |
| 42 | + </div> |
| 43 | + </hx-accordion-panel> |
| 44 | + |
| 45 | + <hx-accordion-panel> |
| 46 | + <header slot="header"> |
| 47 | + <span class="beta-hxStepCounter"></span> |
| 48 | + <span class="beta-hxStepLabel">Topic</span> |
| 49 | + <span class="beta-hxStepValue">Technical Incident</span> |
| 50 | + </header> |
| 51 | + <div class="hxBox-md"> |
| 52 | + <p> |
| 53 | + <em>Content Goes Here</em> |
| 54 | + </p> |
| 55 | + <p class="beta-hxSubmitButtons"> |
| 56 | + <button class="hxBtn hxPrimary" @click="nextStep">Next Step</button> |
| 57 | + <button class="hxBtn" @click="prevStep">Prev Step</button> |
| 58 | + <button class="hxBtn hxLink">Cancel</button> |
| 59 | + </p> |
| 60 | + </div> |
| 61 | + </hx-accordion-panel> |
| 62 | + |
| 63 | + <hx-accordion-panel> |
| 64 | + <header slot="header"> |
| 65 | + <span class="beta-hxStepCounter"></span> |
| 66 | + <span class="beta-hxStepLabel">Issue Details</span> |
| 67 | + <span class="beta-hxStepValue"></span> |
| 68 | + </header> |
| 69 | + <div class="hxBox-md"> |
| 70 | + <p> |
| 71 | + <em>Content Goes Here</em> |
| 72 | + </p> |
| 73 | + <p class="beta-hxSubmitButtons"> |
| 74 | + <button class="hxBtn hxPrimary">Submit</button> |
| 75 | + <button class="hxBtn" @click="prevStep">Prev Step</button> |
| 76 | + <button class="hxBtn hxLink">Cancel</button> |
| 77 | + </p> |
| 78 | + </div> |
| 79 | + </hx-accordion-panel> |
| 80 | + </hx-accordion> |
| 81 | + </div> |
| 82 | + {% code 'html' %} |
| 83 | + <hx-accordion class="beta-hxStepper" current-panel="0"> |
| 84 | + <hx-accordion-panel> |
| 85 | + <header slot="header"> |
| 86 | + <span class="beta-hxStepCounter"> |
| 87 | + <!-- CSS will handle filling in the step number --> |
| 88 | + </span> |
| 89 | + <span class="beta-hxStepLabel">Account</span> |
| 90 | + <span class="beta-hxStepValue">Acme Corp Inc.</span> |
| 91 | + </header> |
| 92 | + <div class="hxBox-md"> |
| 93 | + <p> |
| 94 | + <em>Content Goes Here</em> |
| 95 | + </p> |
| 96 | + <p class="beta-hxSubmitButtons"> |
| 97 | + <button class="hxBtn hxPrimary">Next Step</button> |
| 98 | + <button class="hxBtn">Prev Step</button> |
| 99 | + <button class="hxBtn hxLink">Cancel</button> |
| 100 | + </p> |
| 101 | + </div> |
| 102 | + </hx-accordion-panel> |
| 103 | + <hx-accordion-panel>...</hx-accordion-panel> |
| 104 | + <hx-accordion-panel>...</hx-accordion-panel> |
| 105 | + ... |
| 106 | + </hx-accordion> |
| 107 | + {% endcode %} |
| 108 | + </section> |
| 109 | +{% endblock %} |
0 commit comments