lightdarkdefaultcompact
Getting StartedInstallationChangelogSupportGithubFrameworksAngularVueReactDemosFoundationThemesInternationalizationTypographyIconsPopoversLayoutGetting StartedBlockInlineGridComponentsAccordionAlertAlert GroupBadgeBreadcrumbButtonButton GroupButton ExpandButton HandleButton IconButton ResizeButton SortCardChatCheckboxColorData GridDateDialogDividerDrawerDropdownFileFormat DatetimeFormat NumberFormsForm InteractionsForm ValidationHeaderInputMenuMonthNavPaginationPasswordProgress BarProgress CircleProgress DotRadioRangeRatingSearchSelectStepperSwitchTabsTagTextareaTimeToastToggletipTooltipTreeData GridGetting StartedFooterPlaceholderAsyncResponsiveHeightPaginationBordersHoverLayerRange SelectionCSVColumn AlignmentColumn WidthColumn FixedColumn StickyColumn VisibilityColumn GroupsColumn SpanColumn ResizeDraggable ColumnsDraggable RowsRow HeaderRow Multi SelectRow Single SelectRow HeightRow ActionRow Action BulkRow StickyRow StripeRow FixedRow SortRow Groups

Example

item 1item 2item 3header

Shell

hello there
code
<script type="module">
  import '@blueprintui/components/include/shell.js';
  import '@blueprintui/components/include/header.js';
  import '@blueprintui/components/include/nav.js';
  import '@blueprintui/components/include/alert.js';
  import '@blueprintui/icons/shapes/home.js';
</script>

<bp-shell interaction="auto">
  <bp-nav expanded>
    <bp-nav-item> <bp-icon shape="home"></bp-icon> item 1 </bp-nav-item>
    <bp-nav-item> <bp-icon shape="home"></bp-icon> item 2 </bp-nav-item>
    <bp-nav-item> <bp-icon shape="home"></bp-icon> item 3 </bp-nav-item>
  </bp-nav>
  <bp-header>
    <bp-header-item>header</bp-header-item>
    <bp-header-item id="drawer-button" bp-shell="drawer-button" aria-label="menu" bp-layout="inline:end"><bp-icon size="lg"></bp-icon></bp-header-item>
  </bp-header>
  <section bp-layout="block gap:md" style="height: 2000px">
    <h1 bp-text="heading">Shell</h1>
    <bp-alert-group status="success">
      <bp-alert>hello there</bp-alert>
    </bp-alert-group>
  </section>
</bp-shell>

No Header

item 1item 2item 3

Shell

hello there
code
<script type="module">
  import '@blueprintui/components/include/shell.js';
  import '@blueprintui/components/include/alert.js';
  import '@blueprintui/components/include/nav.js';
  import '@blueprintui/icons/shapes/home.js';
</script>

<bp-shell>
  <bp-nav expanded>
    <bp-nav-item> <bp-icon shape="home"></bp-icon> item 1 </bp-nav-item>
    <bp-nav-item> <bp-icon shape="home"></bp-icon> item 2 </bp-nav-item>
    <bp-nav-item> <bp-icon shape="home"></bp-icon> item 3 </bp-nav-item>
  </bp-nav>
  <section bp-layout="block gap:md">
    <h1 bp-text="heading">Shell</h1>
    <bp-alert-group status="success">
      <bp-alert>hello there</bp-alert>
    </bp-alert-group>
  </section>
</bp-shell>

Install

NPM

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

CDN

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

bp-shell

Events

NameTypesDescription
scrollEvent
opendispatched when the drawer is opened
closedispatched when the drawer is closed

Properties

NameTypesDescription
breakpointnumber
openboolean
interaction'auto'
closableboolean
widthnumber

Attributes

NameTypesDescription
accessordetermine user closable state

Slots

NameTypesDescription
defaultslot for content