Stepper
Move through validated project details and review the values before submitting.
HTML
<form class="rlw-wizard" data-rlw-wizard hx-post="/demo/workspace/project" hx-target="find output">
<ol aria-label="Project setup"><li aria-current="step">Details</li><li>Access</li><li>Review</li></ol>
<section><h2 tabindex="-1">Details</h2><label class="rlw-labeled"><strong>Project name</strong><input class="rl-input" name="project" required maxlength="80" placeholder="Spring collection"></label></section>
<section hidden><h2 tabindex="-1">Access</h2><label class="rlw-labeled"><strong>Access level</strong><select class="rl-select" name="access"><option>Team only</option><option>Private</option></select></label></section>
<section hidden><h2 tabindex="-1">Review</h2><p data-rlw-review></p></section>
<footer><button class="rl-button rl-button-sm rl-button-secondary" data-rlw-back type="button" hidden>Back</button><button class="rl-button rl-button-sm rl-button-primary" data-rlw-next type="button">Continue</button><button class="rl-button rl-button-sm rl-button-primary" data-rlw-finish type="submit" hidden>Confirm setup</button></footer>
<output role="status" class="rlw-status"></output>
</form>HTTP exchange
Use the preview to see the request and the HTML your server returns.Use in your app
Copy these tags into your page head once. Serve the files at the paths shown, then add the example’s template to your page.
Page assets
<link rel="stylesheet" href="/mero.css">
<link rel="stylesheet" href="/mero-workspace.css">
<script defer src="/vendor/htmx.min.js"></script>
<script defer src="/mero.js"></script>
<script defer src="/mero-workspace.js"></script>Point the HTMX attributes at your own HTML endpoints. Use the live preview’s HTTP exchange to inspect the request and response.
Download library and examples ↓