Skip to content

jolly-toolbar ​

jolly-toolbar supplies toolbar semantics and flex layout.

html
<jolly-toolbar label="Editing tools">
  <jolly-button>Move</jolly-button>
  <jolly-button>Paint</jolly-button>
</jolly-toolbar>

Properties ​

ts
interface Toolbar {
  orientation: "horizontal" | "vertical"; // default "horizontal"
  label: string; // accessible name
}
  • The row fills the host, so a slotted control with a flex grow factor takes the free space.
  • Give icon-only buttons --jolly-icon-button-size: 100% so they stretch with it.