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.

51 lines
1.3 KiB

4 years ago
  1. +++
  2. title = "Select"
  3. description = "List a group of options in a drop-down menu."
  4. categories = ["experience"]
  5. tags = []
  6. html_attributes = ["name", "class", "disabled", "form"]
  7. custom_attributes = ["body"]
  8. snippets_used = ["label", "form group"]
  9. [[copyright]]
  10. owner = "Josh Habdas"
  11. date = "2019"
  12. license = "agpl-3.0-or-later"
  13. +++
  14. Basic usage:
  15. ```html
  16. {{</* hackcss-select >}}
  17. <option>Option 1</option>
  18. <option>Option 2</option>
  19. <option>Option 3</option>
  20. {{< /hackcss-select */>}}
  21. ```
  22. {{< hackcss-select >}}
  23. <option>Option 1</option>
  24. <option>Option 2</option>
  25. <option>Option 3</option>
  26. {{< /hackcss-select >}}
  27. With [Label](../label) inside [Form Group](../form-group):
  28. ```html
  29. {{</* hackcss-formgroup name="poolgroup" >}}
  30. {{< hackcss-label for="pool" text="Mining pool:" />}}
  31. {{< hackcss-select id="pool" name="pool" >}}
  32. <option>moneroocean.stream</option>
  33. <option>etn.nanopool.org</option>
  34. <option>monero.hashvault.pro</option>
  35. {{< /hackcss-select >}}
  36. {{< /hackcss-formgroup */>}}
  37. ```
  38. {{< hackcss-formgroup name="poolgroup" >}}
  39. {{< hackcss-label for="pool" text="Mining pool:" />}}
  40. {{< hackcss-select id="pool" name="pool" >}}
  41. <option>moneroocean.stream</option>
  42. <option>etn.nanopool.org</option>
  43. <option>monero.hashvault.pro</option>
  44. {{< /hackcss-select >}}
  45. {{< /hackcss-formgroup >}}