Skip to content

Actionbar

Horizontal or vertical layout shell for page-level actions.

Live Preview
import '@bnotk/dsx/components/actionbar.js';
<dsx-actionbar sticky>
<div slot="left">
<h2>Register data update</h2>
</div>
<button slot="right" type="button">Cancel</button>
<button type="button">Save draft</button>
<button type="button">Publish</button>
</dsx-actionbar>

Simple flex container with separate left and right/default action regions.

PropertyTypeDefaultDescription
orientation’horizontal’ | ‘vertical''horizontal’Switches between top bar and side rail layouts.
stickybooleanfalseMakes the host position: sticky; top: 0.

None.

None.

SlotDescription
leftLeft-aligned content in horizontal mode, top-aligned in vertical mode.
rightRight-aligned content. Rendered before the default slot inside the right region.
defaultAdditional right-region content.

This element does not expose shadow parts.

  • In vertical mode the host becomes a column, drops the bottom border, and adds a right border instead.
  • The right region gets margin-left: auto in horizontal mode to push actions to the end.
  • There is no internal interaction logic; the component is purely structural.
  • Default height is driven by --ds2-actionbar-height in horizontal mode.
  • Surface is white with a stronger grey divider and 1.5rem horizontal padding.
  • Sticky state uses --ds2-z-sticky.