Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
syncfusion avatar

Syncfusion Blazor Sidebar

  • 213 installs
  • 4 repo stars
  • Updated July 28, 2026
  • syncfusion/blazor-ui-components-skills

Use syncfusion-blazor-sidebar for development tasks

About

syncfusion-blazor-sidebar: A skill for development. This provides functionality for development workflows.

  • syncfusion-blazor-sidebar

Syncfusion Blazor Sidebar by the numbers

  • 213 all-time installs (skills.sh)
  • +14 installs in the week ending Aug 5, 2026 (Skillselion tracking)
  • Ranked #1,894 of 4,347 Backend & APIs skills by installs in the Skillselion catalog
  • Data as of Aug 5, 2026 (Skillselion catalog sync)
npx skills add https://github.com/syncfusion/blazor-ui-components-skills --skill syncfusion-blazor-sidebar

Add your badge

Show developers this skill is listed on Skillselion. Paste this into your README.

Listed on Skillselion
Installs213
repo stars4
Last updatedJuly 28, 2026
Repositorysyncfusion/blazor-ui-components-skills

What it does

Use syncfusion-blazor-sidebar for development tasks

Files

SKILL.mdMarkdownGitHub ↗

Implementing Syncfusion Blazor Sidebar Component

The Syncfusion Blazor Sidebar is a responsive navigation component that reserves screen space for navigation content. It supports multiple positioning modes, docking, state persistence, and integrates seamlessly with other Syncfusion components.

When to Use This Skill

Use this skill when you need to:

  • Add a collapsible navigation sidebar to your Blazor application
  • Control sidebar open/close state programmatically
  • Enable responsive behavior based on screen resolution
  • Show icons-only navigation (dock mode)
  • Persist sidebar state across page navigation
  • Display multiple sidebars with different positioning
  • Target specific HTML elements for sidebar context
  • Integrate ListView or TreeView components in sidebar
  • Apply custom CSS styling to sidebar appearance
  • Build responsive layouts in Blazor WebAssembly or .NET 8 apps

Key Component Properties

PropertyPurpose
IsOpenGets or sets a boolean value which indicates whether the Sidebar component's state is open or close. When the Sidebar type is set to Auto, the component will be expanded in desktop and collapsed in mobile mode regardless of the IsOpen property.
WidthSets sidebar width in pixels or percentage
TypeSidebar behavior: Push, Over, Slide, Auto
PositionSidebar position: Left (default) or Right
EnableDockShows icons-only when collapsed (default: false)
DockSizeWidth of dock area in pixels
MediaQueryCSS media query for responsive behavior
TargetSpecific HTML element as sidebar context
EnablePersistenceRetains state in localStorage (default: false)
ShowBackdropOverlay behind sidebar to prevent content interaction
AnimateEnables animation transitions while expanding or collapsing (default: true)
EnableRtlDisplays sidebar in right-to-left direction for RTL languages (default: false)

Documentation and Navigation Guide

Getting Started

📄 Read: references/getting-started.md

  • Installation across Visual Studio, VS Code, and .NET CLI
  • NuGet package setup (Syncfusion.Blazor.Navigations, Syncfusion.Blazor.Themes)
  • Namespace imports and service registration
  • Theme stylesheet and script references
  • Basic component rendering

Web App Setup (.NET 8)

📄 Read: references/web-app-setup.md

  • Blazor Web App project creation
  • Interactive render modes (Auto, Server, WebAssembly)
  • Package installation for client projects
  • Stylesheet and script references in App.razor
  • Render mode directive usage

Open/Close Control

📄 Read: references/open-close-control.md

  • IsOpen property and two-way binding with @bind-IsOpen
  • Toggle methods for programmatic control
  • Button-based sidebar toggling
  • Combining multiple open/close triggers and standard event handling

Responsive & Docking Features

📄 Read: references/responsive-docking.md

  • MediaQuery property for responsive behavior
  • EnableDock property for icon-only navigation mode
  • DockSize to control icon area width
  • Icon styling and font-face setup
  • Docking with ListItems and icon management

State Persistence & Target Context

📄 Read: references/state-persistence-targets.md

  • EnablePersistence for localStorage support
  • ID requirement for persistence to work
  • Target property for sidebar context
  • Applying sidebar to specific HTML elements
  • Toolbar and AppBar integration

Styling & Animation

📄 Read: references/styling-customization.md

  • Animation control using Animate property
  • RTL (right-to-left) support using EnableRtl property
  • CSS transitions and custom animation effects
  • State-based styling and visual customization
  • Backdrop customization and dock styling

Multiple Sidebars

📄 Read: references/multiple-sidebars.md

  • Managing multiple sidebar instances
  • Position property (Left/Right)
  • e-main-content class for multi-sidebar layouts
  • Left and right sidebar toggling
  • Coordinating multiple sidebar states

Content Integration

📄 Read: references/content-integration.md

  • Integrating ListView component in sidebar
  • ListViewFieldSettings configuration
  • TreeView integration for hierarchical menus
  • Toolbar component integration
  • MainLayout integration in .NET 8 apps

API Reference

📄 Read: references/api-reference.md

  • Complete API documentation for SfSidebar component
  • All 22 properties with descriptions and accepted values
  • Methods and their return types
  • Complete event system (Changed, Created, Destroyed, IsOpenChanged, OnClose, OnOpen)
  • Event arguments (ChangeEventArgs, EventArgs)
  • SfSidebarContainer documentation
  • 9+ comprehensive usage examples with code
  • Property use cases with practical implementations

---

Quick Start Example

@using Syncfusion.Blazor.Navigations
@using Syncfusion.Blazor.Buttons

<SfSidebar @ref="sidebarObj" Width="250px" @bind-IsOpen="SidebarToggle">
    <ChildContent>
        <div style="text-align: center; padding: 3rem;">
            <p>Sidebar Content</p>
            <SfButton @onclick="Close" CssClass="e-btn">Close</SfButton>
        </div>
    </ChildContent>
</SfSidebar>

<div style="padding: 3rem;">
    <div>Main Content</div>
    <SfButton @onclick="Toggle" IsToggle="true">Toggle Sidebar</SfButton>
</div>

@code {
    SfSidebar sidebarObj;
    public bool SidebarToggle = false;

    public void Toggle() => SidebarToggle = !SidebarToggle;
    public void Close() => SidebarToggle = false;
}

Common Implementation Patterns

Pattern 1: Basic Toggle Sidebar

Use IsOpen property with button click to show/hide sidebar.

Pattern 2: Responsive Sidebar

Use MediaQuery to automatically hide sidebar on mobile and show on desktop.

Pattern 3: Docked Navigation

Use EnableDock with DockSize for icon-only navigation that expands on hover/click.

Pattern 4: Persistent State

Use EnablePersistence + unique ID to remember sidebar state across page navigation.

Pattern 5: Target Property Behavior

  • Implicit (Default): No Target property → sidebar targets next sibling element automatically
  • Explicit (Advanced): Target=".selector" → requires inner wrapper `<div>` for CSS transforms
  • ✓ Use implicit for most cases | Use explicit only for scoped layout control
  • See State Persistence & Target Context for detailed patterns

Pattern 6: Sidebar with Menu

Combine with ListView or TreeView for structured navigation menus.

Pattern 7: Multiple Sidebars

Use Position property with left/right sidebars flanking main content.

---

Next Steps: 1. Choose your platform: WebAssembly or .NET 8 Web App 2. Follow the Getting Started guide for installation 3. Select features from the navigation guide above 4. Implement your sidebar with appropriate styling

For detailed examples and advanced scenarios, refer to individual reference files.

Related skills

Backend & APIsbackendintegrations

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.