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.

hackcss-label.html 777B

123456789101112131415161718192021222324
  1. <!-- {{/*
  2. Permitted attributes: "for", "form", "text"
  3. Explicit label association (preferred):
  4. {{< hackcss-label for="query" text="Enter search query:" />}}
  5. {{< hackcss-textinput type="search" id="query" >}}
  6. Implicit label association with markup:
  7. {{< hackcss-label >}}
  8. mau kemana?<sup><a href="#kemana">§</a></sup>
  9. {{< hackcss-textinput placeholder="di ingres" >}}
  10. {{< /hackcss-label >}}
  11. Inside form group for default label styling:
  12. {{< hackcss-formgroup >}}
  13. {{< hackcss-label for="fullname" text="Name:" />}}
  14. {{< hackcss-textinput id="fullname" >}}
  15. {{< /hackcss-formgroup >}}
  16. */}} -->
  17. {{ $for := .Get "for" }}
  18. {{ $form := .Get "form" }}
  19. {{ $body := .Get "text" | default .Inner }}
  20. {{ partial "components/label.html" (dict "for" $for "form" $form "body" $body) }}