Panel
Group content under a heading with optional collapse.
import { NeuPanelComponent } from '@neural-ui/core/panel';Usage
Examples
Delivery details
Try and configure
Order details
Delivery is included in this order.
<neu-panel
header="Order details"
[collapsible]="true"
[collapsed]="collapsed()"
(collapsedChange)="collapsed.set($event)"
expandLabel="Expand"
collapseLabel="Collapse"
>
<p>Delivery is included in this order.</p>
</neu-panel>Data and content
Accessibility and keyboard
API
Inputs
Configure the component with [property]="value". Your application supplies these values; the component does not replace the state you pass in.
Outputs
Listen to an event with (event)="handler($event)". The table explains the data your handler receives and how to use it.
Templates
ng-content projects content into the component. TemplateRef inputs receive a template; ng-template directives identify templates with a typed context. A directive shared by an entrypoint is not necessarily a slot of this component.
Each example demonstrates a different template. Switch between Demo and Code to inspect its implementation, imports and state.
Panel body
*
Order details
Projected content can include actions.
Confirmations: 0
Public Types
Open a type to inspect its definition and interface fields.
Styles and tokens
Specific tokens
This component uses shared theme tokens rather than dedicated component hooks.
Shared tokens used
Override these on a local wrapper to affect this example. An override on :root affects other components that use the same token.