Skip to content

Panel ​

hx-panel is a titled container that can collapse. The header input is the title; [hxPanelHeader] adds content next to it (icons, buttons) and [hxPanelFooter] is the footer. Expanding and collapsing is animated unless the user prefers reduced motion.

html
<hx-panel header="Filters" toggleable [(collapsed)]="closed">
  <button hxPanelHeader hx-button size="small">Reset</button>
  ...
  <div hxPanelFooter>3 filters active</div>
</hx-panel>
InputTypeDefaultDescription
headerstring''The title.
toggleablebooleanfalseA button in the header collapses and expands the content.
collapsedboolean (model)false[(collapsed)]; only a toggleable panel collapses.
  • Accessibility: the toggle is a native <button> named by the title, with aria-expanded and aria-controls; the content is a role="region" labelled by the title, and inert while collapsed so its controls leave the tab order.

Tokens ​

The look comes from the design tokens --h-panel-* (see Theming); override them in your theme, never the component CSS.

Part of @gravionlabs/helix-ui; all components are listed in the component reference.

Released under the MIT licence.