Skip to contentGet startedTokensComponents@hackclub/theme@hackclub/tokens@hackclub/css-base@hackclub/components@hackclub/meta GitHub
Create club
<form style="display: grid; gap: 24px; max-width: 420px">
  <hc-input label="Club name" name="club" placeholder="Hack Club @ Shelburne" hint="You can change this later." required></hc-input>
  <hc-input label="Website" name="url" type="url" error="That doesn't look like a URL" value="hackclub"></hc-input>
  <hc-button type="submit" arrow>Create club</hc-button>
</form>

API

Attributes

NameTypeDescription
labelstringVisible label
hide-labelbooleanKeep the label for screen readers only
name, value, type, placeholderstringSame as <input>
autocomplete, inputmode, pattern, minlength, maxlengthSame as <input>
hintstringHelp text below the field
errorstringError message; marks the field invalid
required, disabled, readonlybooleanSame as <input>

Events

NameDescription
inputEvery keystroke
changeWhen the value is committed

CSS parts

NameDescription
label
input
hint
error
Next: Email signup

The design system behind hackclub.com.
Made with <3 by Lamparter.

Get startedTokensComponents@hackclub/theme@hackclub/tokens@hackclub/css-base@hackclub/components@hackclub/metaWebsiteBrand guideIconshackclub/site