lightdarkdefaultcompact
Getting StartedInstallationChangelogSupportGithubIntegrationsAngularVueReactDemosFoundationThemesTypographyIconsPopoversInternationalizationDrag and DropKeyboard NavigationLayoutGetting StartedBlockInlineGridComponentsAccordionAlertAlert GroupAvatarBadgeBreadcrumbButtonButton CopyButton GroupButton ExpandButton HandleButton IconButton ResizeButton SortCardChatCheckboxColorData GridDateDialogDividerDrawerDropdownFileFormat BytesFormat DatetimeFormat NumberFormat Relative TimeFormat TokenFormsForm InteractionsForm ValidationHeaderInputMenuMonthNavNumberPagePaginationPanelPasswordPinProgress BarProgress CircleProgress DotRadioRangeRatingSearchSelectSkeletonStepperSwitchTabsTagTelephoneTextareaTimeToastToggletipTooltipTreeData GridGetting StartedFooterPlaceholderAsyncResponsiveHeightPaginationBordersHoverLayerRange SelectionCSVClipboardColumn AlignmentColumn WidthColumn FixedColumn StickyColumn VisibilityColumn GroupsColumn SpanColumn ResizeDraggable ColumnsDraggable RowsRow HeaderRow Multi SelectRow Single SelectRow HeightRow ActionRow Action BulkRow StickyRow StripeRow FixedRow SortRow Groups

The panel component is used to display secondary information, commonly navigation or actions.

Example

Groups related content in a bordered container section.

header

content

footer

code
<script type="module">
  import '@blueprintui/components/include/panel.js';
</script>

<bp-panel style="height: 400px">
  <p slot="header" bp-text="content">header</p>
  <p bp-text="content">content</p>
  <p slot="footer" bp-text="content">footer</p>
</bp-panel>

Closable

Demonstrates panel with closable functionality.

header

content

footer

code
<script type="module">
  import '@blueprintui/components/include/panel.js';

  document.querySelector('#closable-panel-example').addEventListener('close', (e) => {
    console.log('close');
  });
</script>

<bp-panel closable id="closable-panel-example" style="height: 400px">
  <p slot="header" bp-text="content">header</p>
  <p bp-text="content">content</p>
  <p slot="footer" bp-text="content">footer</p>
</bp-panel>

Size

Demonstrates various panel size options.

small

content

footer

medium

content

footer

large

content

footer

code
<script type="module">
  import '@blueprintui/components/include/panel.js';
</script>

<div bp-layout="inline gap:md">
  <bp-panel size="sm" style="height: 400px">
    <p slot="header" bp-text="content">small</p>
    <p bp-text="content">content</p>
    <p slot="footer" bp-text="content">footer</p>
  </bp-panel>

  <bp-panel size="md" style="height: 400px">
    <p slot="header" bp-text="content">medium</p>
    <p bp-text="content">content</p>
    <p slot="footer" bp-text="content">footer</p>
  </bp-panel>

  <bp-panel size="lg" style="height: 400px">
    <p slot="header" bp-text="content">large</p>
    <p bp-text="content">content</p>
    <p slot="footer" bp-text="content">footer</p>
  </bp-panel>
</div>

Scroll

Shows panel with scrollable overflow content.

header

content

footer

code
<script type="module">
  import '@blueprintui/components/include/panel.js';
</script>

<bp-panel style="height: 400px">
  <p slot="header" bp-text="content">header</p>
  <p bp-text="content" style="height: 1000px">content</p>
  <p slot="footer" bp-text="content">footer</p>
</bp-panel>

Install

NPM

// npm package
import '@blueprintui/components/include/panel.js';

CDN

<script type="module">
  import 'https://cdn.jsdelivr.net/npm/@blueprintui/components/include/panel.js/+esm';
</script>

Accessibility

bp-panel

Events

NameTypesDescription
close
open

Properties

NameTypesDescription
size'sm' | 'md' | 'lg'Determines the size variant of the panel for different visual hierarchies
closablebooleanDetermines whether a close button is displayed for dismissing the panel
hiddenbooleanControls the visibility state of the panel
i18nProvides internationalization strings for translated text content

Attributes

NameTypesDescription
size'sm' | 'md' | 'lg'Determines the size variant of the panel for different visual hierarchies
closablebooleanDetermines whether a close button is displayed for dismissing the panel
hiddenbooleanControls the visibility state of the panel
i18nProvides internationalization strings for translated text content

CSS Properties

NameTypesDescription
--background
--color
--border
--padding

Slots

NameTypesDescription
defaultcontent
header
footer