ng-bootstrap
Home
Basic
Alert
Forms
Floating labelsInput groupMulti-rangeRangePhone inputSelectRadioCheckboxDatepickerTimepickerDateTime picker
Containers
GridCardTab control
RatingBadgeBreadcrumbButton groupButton typeCalendarMarqueeList groupTreeviewTree selectTableClosePaginationPlaceholderSpinnerColor pickerProgress barFor directiveIcon
Overlays
ModalsOffcanvasTooltipToastPopoverDropdownTypeaheadContext menuShell
Advanced
CopyCode snippet
Pipes
Trust-htmlSplit-stringLinifySlugifyWord-countFont-colorHas-property
Toggle buttonsSticky footerAutofocusTrackByAsync HostBindingInstance ofIs interfaceResizableOrdinal numbersMarkdownParallaxPriority navigationScrollspyFile uploadSignature padLazy-loading componentsUser-agentNavigation lockNavigation lock (master/detail)
Enterprise
CarouselSchedulerTimelineDockRibbonTile managerDatatablesFile managerQuery builderOTP inputNavbarSplitterAccordionCharts
Animations
Slide up/downFade in/outColor transition
Additional samples
CollapseFocusTrapDrag-dropTree-select drag-dropQR-code viewerStepperTheming
Anchor scrolling
Section 1Section 2Section 3Section 4Section 5
Auto theme
22.34.0

Shell

bs-shell is a responsive app-shell layout with a collapsible sidebar. The sidebar content is marked with the structural *bsShellSidebar directive (top-bar content with *bsShellTopbar); all other children form the main content area. The [state] input ('auto', 'show', 'hide') controls visibility, while [breakpoint] sets the viewport size at which 'auto' reveals the sidebar. Bind [size] to resize it at runtime.

Basic usage

Skip to content
Receipes
Apple pieRaspberry pie
Menus
ChristmasEaster
Social
Forum
All postsCreate post
Blog
All postsCreate post

  
    
      
        <bs-shell [state]="'auto'" [breakpoint]="'md'">
        
    
      
          <nav *bsShellSidebar>
        
    
      
            <span class="d-block p-3">Home</span>
        
    
      
            <span class="d-block p-3">Settings</span>
        
    
      
          </nav>
        
    
      
        
        
    
      
          <main class="p-3">
        
    
      
            Main content is every other child.
        
    
      
          </main>
        
    
      
        </bs-shell>
        
    
Copied!
  
    
      
        import { Component } from '@angular/core';
        
    
      
        import { BsShellComponent, BsShellSidebarDirective } from '@mintplayer/ng-bootstrap/shell';
        
    
      
        
        
    
      
        @Component({
        
    
      
          selector: 'my-shell-demo',
        
    
      
          templateUrl: './my-shell-demo.component.html',
        
    
      
          imports: [BsShellComponent, BsShellSidebarDirective],
        
    
      
        })
        
    
      
        export class MyShellDemoComponent {}
        
    
Copied!