Docs / Components

SensePanelComponent

Bordered layout surface from @artificialsenselabs/ui with header, optional collapse, and footer projection slots.

Live demo: run nx serve showcase and open /components/panel (port 4202).

Overview

Category: Layout. Selector: sense-panel. Import: import { SensePanelComponent } from '@artificialsenselabs/ui';

<sense-panel header="Notifications" [toggleable]="true">
  <p>Alert preferences</p>
</sense-panel>

Content slots

SelectorRegion
[panelHeader]Custom header markup (alternative to header input).
[panelIcons]Header action icons (e.g. badges, icon buttons).
(default)Main panel body content.
[panelFooter]Footer region below the body.

Inputs

InputTypeDefaultDescription
headerstring''Header label text.
toggleablebooleanfalseEnables collapsible content via header toggle button.
collapsedbooleanfalseTwo-way bindable collapse state.
toggleLabelstring | nullnullAccessible name override for the toggle button.
styleClassstring | nullnullExtra CSS classes on the host.

Accessibility

  • Host exposes role="region" with aria-labelledby when a header is shown.
  • Toggle button sets aria-expanded and aria-controls on the content region.
  • Collapsed content is aria-hidden="true".
  • Collapse animation pauses under prefers-reduced-motion: reduce.