s72
  • Checkbox and radio

    input[type="checkbox"]

    Plain <input type="checkbox"> and <input type="radio">, drawn to match the rest of the library. Group them in a <fieldset> with a <legend>.

    Basic

    Outputs
    On a broken link
    html
    <article data-tone="card" style="display:grid;gap:1.2rem">
      <fieldset><legend>Outputs</legend>
        <label><input type="checkbox" checked> HTML pages</label>
        <label><input type="checkbox"> RSS feed</label>
      </fieldset>
      <fieldset><legend>On a broken link</legend>
        <label><input type="radio" name="broken" checked> Warn and carry on</label>
        <label><input type="radio" name="broken"> Stop the build</label>
      </fieldset>
    </article>

    A <fieldset> without data-segmented is a plain group: no border, a bold legend and its own gap.

    Notes