s72
  • Button group

    data-group

    <menu data-group> joins a row of buttons into one block. Use aria-pressed to mark which one is on.

    Basic

  • html
    <menu data-group>
      <li><button data-variant="line">Day</button></li>
      <li><button data-variant="line" aria-pressed="true">Week</button></li>
      <li><button data-variant="line">Month</button></li>
    </menu>

    Only the outer corners are rounded, and the borders between the buttons overlap into one line.

    Notes