diff options
| author | Mitchell Riedstra <mitch@riedstra.dev> | 2024-01-05 23:18:49 -0500 |
|---|---|---|
| committer | Mitchell Riedstra <mitch@riedstra.dev> | 2024-01-05 23:18:49 -0500 |
| commit | bd5a00c61b355c857b5c99323592ca432dea5d0a (patch) | |
| tree | 7e8ac7730527c1ad71e3fdac85840948fd23f45f /htmx/static/pico-1.5.11/docs/src/buttons.html | |
| parent | c71b37eb23d4c8af7ab983de34c6da5be9363f3a (diff) | |
| download | paste-bd5a00c61b355c857b5c99323592ca432dea5d0a.tar.gz paste-bd5a00c61b355c857b5c99323592ca432dea5d0a.tar.xz | |
wip
Diffstat (limited to 'htmx/static/pico-1.5.11/docs/src/buttons.html')
| -rw-r--r-- | htmx/static/pico-1.5.11/docs/src/buttons.html | 77 |
1 files changed, 77 insertions, 0 deletions
diff --git a/htmx/static/pico-1.5.11/docs/src/buttons.html b/htmx/static/pico-1.5.11/docs/src/buttons.html new file mode 100644 index 0000000..7b37c18 --- /dev/null +++ b/htmx/static/pico-1.5.11/docs/src/buttons.html @@ -0,0 +1,77 @@ +<!doctype html> +<html lang="en"> + <head> + ${require('./_head.html') + title=`Buttons` + description=`The essential button in pure HTML, without .classes for the default style.` + canonical=`buttons.html` + } + </head> + + <body> + ${require('./_nav.html')} + + <main class="container" id="docs"> + ${require('./_sidebar.html') active=`buttons-link`} + + <div role="document"> + <section id="buttons"> + <hgroup> + <h1>Buttons</h1> + <h2>The essential button in pure HTML, without <code>.classes</code> for the default style.</h2> + </hgroup> + <article aria-label="Button example"> + <button aria-label="Button">Button</button> + <input type="submit"> + <footer class="code"> + +<pre><code><<b>button</b>>Button</<b>button</b>> +<<b>input</b> <i>type</i>=<u>"submit"</u>></code></pre> + + </footer> + </article> + <p>Buttons are <code><i>width</i>: <u>100%</u>;</code> by default. Use <code><i>role</i>=<u>"button"</code> on an inline element if you need an inline button.</p> + <article aria-label="Inline buttons examples"> + <a href="#" onclick="event.preventDefault()" role="button">Link</a> + <a href="#" onclick="event.preventDefault()" role="button">Link</a> + <footer class="code"> + +<pre><code><<b>a</b> <i>href</i>=<u>"#"</u> <i>role</i>=<u>"button"</u>>Link</<b>a</b>> +<<b>a</b> <i>href</i>=<u>"#"</u> <i>role</i>=<u>"button"</u>>Link</<b>a</b>></code></pre> + + </footer> + </article> + <p>Buttons come with <code>.secondary</code> and <code>.contrast</code> styles.</p> + <p>ℹ️ These classes are not available in the <a href="classless.html">class-less version</a>.</p> + <article aria-label="Buttons styles examples"> + <a href="#" onclick="event.preventDefault()" role="button" class="secondary">Secondary</a> + <a href="#" onclick="event.preventDefault()" role="button" class="contrast">Contrast</a> + <footer class="code"> + +<pre><code><<b>a</b> <i>href</i>=<u>"#"</u> <i>role</i>=<u>"button"</u> <i>class</i>=<u>"secondary"</u>>Secondary</<b>a</b>> +<<b>a</b> <i>href</i>=<u>"#"</u> <i>role</i>=<u>"button"</u> <i>class</i>=<u>"contrast"</u>>Contrast</<b>a</b>></code></pre> + + </footer> + </article> + <p>And a classic <code>.outline</code> variant.</p> + <article aria-label="Outline style examples"> + <a href="#" onclick="event.preventDefault()" role="button" class="outline">Primary</a> + <a href="#" onclick="event.preventDefault()" role="button" class="secondary outline">Secondary</a> + <a href="#" onclick="event.preventDefault()" role="button" class="contrast outline">Contrast</a> + <footer class="code"> + +<pre><code><<b>a</b> <i>href</i>=<u>"#"</u> <i>role</i>=<u>"button"</u> <i>class</i>=<u>"outline"</u>>Primary</<b>a</b>> +<<b>a</b> <i>href</i>=<u>"#"</u> <i>role</i>=<u>"button"</u> <i>class</i>=<u>"secondary outline"</u>>Secondary</<b>a</b>> +<<b>a</b> <i>href</i>=<u>"#"</u> <i>role</i>=<u>"button"</u> <i>class</i>=<u>"contrast outline"</u>>Contrast</<b>a</b>></code></pre> + + </footer> + </article> + </section> + + ${require('./_footer.html')} + + </div> + </main> + <script src="js/commons.min.js"></script> + </body> +</html> |
