Axon 911 Frontend Docs
    Loading navigation…
U
User
Switch to light mode
  1. Components
  2. Panel
  3. API and Development

Panel

API and Development

View SourceOpens in a new tabSubmit IssueOpens in a new tab
Panel and its parts (PanelHeader, PanelBody, PanelError, header controls) ship from @prepared911/ui/panel. The header's variant selects docked, desktop popped-out, or browser popped-out chrome.
Props
NameTypeDefaultDescription
childrenReactNode—A {@link PanelHeader } and, when needed, a {@link PanelBody }. Header-only tiles omit the body.
aria-labelLocalizedMessage—Accessible name of the panel. With a name the panel is a region landmark; without one it is an unnamed section, which is not. Give it the title the header shows when the panel is one of the page's few main regions.
aria-labelledbystring—Id of the element that names the panel, instead of aria-label.
classNamestring—@deprecated Pass layout through enum props and shipped parts. Request a missing case via find-pattern.
idstring—Element id.
refRef<HTMLElement>—Ref to the root section.
Storybook
Interactive examples and edge cases for this component are in Storybook.
DefaultOpens in a new tab
Header-only contract
Omit PanelBody when a tile should show only the header strip. Popped-out frame padding and the gap before the body apply only when a body is mounted.
Previous
Panel / Accessibility
Next
Pie Chart / Usage
On this page
Props
Storybook
Header-only contract