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.

44 lines
1.5 KiB

4 years ago
  1. +++
  2. title = "Help Block"
  3. description = "Combine with form controls to guide user input."
  4. categories = ["experience"]
  5. tags = []
  6. html_attributes = ["class"]
  7. custom_attributes = ["text"]
  8. snippets_used = ["form group", "text input"]
  9. [[copyright]]
  10. owner = "Josh Habdas"
  11. date = "2019"
  12. license = "agpl-3.0-or-later"
  13. +++
  14. Plain or formatted text:
  15. ```html
  16. {{</* hackcss-helpblock text="Plain text Help Block" /*/>}}
  17. {{</* hackcss-helpblock >}}<i>Italicized HTML Help Block</i>{{< /hackcss-helpblock */>}}
  18. {{%/* hackcss-helpblock %}}**Bold Markdown Help Block**{{% /hackcss-helpblock */%}}
  19. ```
  20. {{< hackcss-helpblock text="Plain text Help Block" />}}
  21. {{< hackcss-helpblock >}}<i>Italicized HTML Help Block</i>{{< /hackcss-helpblock >}}
  22. {{% hackcss-helpblock %}}**Bold Markdown Help Block**{{% /hackcss-helpblock %}}
  23. Used above and below [Text Input](../text-input) with `class` attribute:
  24. ```html
  25. {{</* hackcss-formgroup >}}
  26. {{< hackcss-helpblock >}}
  27. <strong>Enter a <em>secure</em> password below:</strong>
  28. {{< /hackcss-helpblock >}}
  29. {{< hackcss-textinput type="password" minlength="27" >}}
  30. {{< hackcss-helpblock class="muted" text="Min. 27 chars" />}}
  31. {{< /hackcss-formgroup */>}}
  32. ```
  33. {{< hackcss-formgroup >}}
  34. {{< hackcss-helpblock >}}
  35. <strong>Enter a <em>secure</em> password below:</strong>
  36. {{< /hackcss-helpblock >}}
  37. {{< hackcss-textinput type="password" minlength="27" >}}
  38. {{< hackcss-helpblock class="muted" text="Min. 27 chars" />}}
  39. {{< /hackcss-formgroup >}}