Hugo Dark Theme Site Generator https://after-dark.habd.as
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

select.md 1.3KB

+++ title = “Select” description = “List a group of options in a drop-down menu.” categories = [“experience”] tags = [] html_attributes = [“name”, “class”, “disabled”, “form”] custom_attributes = [“body”] snippets_used = [“label”, “form group”] copyright owner = “Josh Habdas” date = “2019” license = “agpl-3.0-or-later” +++

Basic usage:

{{</* hackcss-select >}}
  <option>Option 1</option>
  <option>Option 2</option>
  <option>Option 3</option>
{{< /hackcss-select */>}}

{{< hackcss-select >}} Option 1 Option 2 Option 3 {{< /hackcss-select >}}

With Label inside Form Group:

{{</* hackcss-formgroup name="poolgroup" >}}
  {{< hackcss-label for="pool" text="Mining pool:" />}}
  {{< hackcss-select id="pool" name="pool" >}}
    <option>moneroocean.stream</option>
    <option>etn.nanopool.org</option>
    <option>monero.hashvault.pro</option>
  {{< /hackcss-select >}}
{{< /hackcss-formgroup */>}}

{{< hackcss-formgroup name=“poolgroup” >}} {{< hackcss-label for=“pool” text=“Mining pool:” />}} {{< hackcss-select id=“pool” name=“pool” >}}

<option>moneroocean.stream</option>
<option>etn.nanopool.org</option>
<option>monero.hashvault.pro</option>

{{< /hackcss-select >}} {{< /hackcss-formgroup >}}