Components

Button

The pui-btn class turns a <button> or an <a> into a button. It brings the shape only: pair it with a style and a color.

Styles

Colors

Two colors are defined against the page rather than against a palette:

Rounded

pui-rounded is the other half of the pair: it puts the default radius back on an element that lost it, which is what a group does to the pieces inside it.

Disabled

For an element that is not a <button>, use aria-disabled="true", which looks the same and is announced correctly.

With an icon

pui-btn is a flex container with a gap, so an icon and a label line up on their own:

<button class="pui-btn pui-solid pui-theme">
  <svg width="16" height="16"><!-- ... --></svg>
  Save
</button>

Grouping

See Layout Group.