
syncfusion-blazor-sidebar
Guide to implementing Syncfusion Blazor Sidebar component for responsive navigation sidebars. Use this when building Blazor WebAssembly and .NET 8 Web Apps that need sidebars. Covers setup, open/close control, docking, state persistence, multiple sidebars, and complete styling. Includes ListView and TreeView integration.
- Installs
- 348
- Last 24h
- —
- Trending rank
- —
- Security
- Not audited
Install
Works with every agent the skills CLI supports.
npx skills add https://github.com/syncfusion/blazor-ui-components-skills --skill syncfusion-blazor-sidebar- 01
Install
Run the command in your project. The CLI asks which agents to install for.
- 02
Describe the task
Ask your agent for something this skill covers. It loads syncfusion-blazor-sidebar automatically when relevant.
- 03
Review the result
The agent follows the SKILL.md steps, scripts and references bundled with the skill.
SKILL.md
The instructions your agent reads when the skill is triggered.
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
| Property | Purpose |
|---|---|
IsOpen | Gets 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. |
Width | Sets sidebar width in pixels or percentage |
Type | Sidebar behavior: Push, Over, Slide, Auto |
Position | Sidebar position: Left (default) or Right |
EnableDock | Shows icons-only when collapsed (default: false) |
DockSize | Width of dock area in pixels |
MediaQuery | CSS media query for responsive behavior |
Target | Specific HTML element as sidebar context |
EnablePersistence | Retains state in localStorage (default: false) |
ShowBackdrop | Overlay behind sidebar to prevent content interaction |
Animate | Enables animation transitions while expanding or collapsing (default: true) |
EnableRtl | Displays 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
IsOpenproperty 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
MediaQueryproperty for responsive behaviorEnableDockproperty for icon-only navigation modeDockSizeto 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
EnablePersistencefor localStorage support- ID requirement for persistence to work
Targetproperty for sidebar context- Applying sidebar to specific HTML elements
- Toolbar and AppBar integration
Styling & Animation
📄 Read: references/styling-customization.md
- Animation control using
Animateproperty - RTL (right-to-left) support using
EnableRtlproperty - 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
Positionproperty (Left/Right)e-main-contentclass 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
Targetproperty → 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:
- Choose your platform: WebAssembly or .NET 8 Web App
- Follow the Getting Started guide for installation
- Select features from the navigation guide above
- Implement your sidebar with appropriate styling
For detailed examples and advanced scenarios, refer to individual reference files.
FAQ
What does the syncfusion-blazor-sidebar skill do?
Guide to implementing Syncfusion Blazor Sidebar component for responsive navigation sidebars. Use this when building Blazor WebAssembly and .NET 8 Web Apps that need sidebars. Covers setup, open/close control, docking, state persistence, multiple sidebars, and complete styling. Includes ListView and TreeView integration.
How do I install syncfusion-blazor-sidebar?
Run npx skills add https://github.com/syncfusion/blazor-ui-components-skills --skill syncfusion-blazor-sidebar in your project. The skills CLI detects the agents you use and copies the skill into the right folder. For Claude Code you can also place the skill folder at ~/.claude/skills/syncfusion-blazor-sidebar/ (personal) or .claude/skills/syncfusion-blazor-sidebar/ (project).
Which AI agents can use syncfusion-blazor-sidebar?
Any agent that supports the open Agent Skills format (a folder with a SKILL.md file), including Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, Windsurf, Cline, OpenCode and more.
Is syncfusion-blazor-sidebar safe to install?
No partner security audit is available yet. Skills can run commands and scripts, so read the SKILL.md and any bundled files before installing.
Who maintains syncfusion-blazor-sidebar?
It is published by syncfusion in syncfusion/blazor-ui-components-skills. It has 348 recorded installs.
More from syncfusion/blazor-ui-components-skills
syncfusion-blazor-datagrid
syncfusion/blazor-ui-components-skills
Implements the Syncfusion Blazor DataGrid (SfGrid) for efficient tabular operations such as sorting, filtering, paging, grouping, editing, aggregates, virtualization, lazy‑load grouping, and row or column spanning. Use this skill when building data‑grid workflows in Blazor Server, WebAssembly, Web App, or MAUI applications. Supports Excel/PDF export, virtual or infinite scrolling, customizable templates, and grid state persistence for consistent and optimized data‑grid behavior.
syncfusion-blazor-common
syncfusion/blazor-ui-components-skills
Open the skill to read its SKILL.md instructions.
syncfusion-blazor-dropdowns
syncfusion/blazor-ui-components-skills
Comprehensive guide for implementing Syncfusion Blazor dropdown components including AutoComplete, ComboBox, DropDown List, MultiSelect Dropdown, and ListBox. Use this when building selection interfaces, data binding, filtering, cascading dropdowns, custom templates, and accessible dropdown experiences in Blazor applications. Covers all dropdown components from Syncfusion.Blazor.DropDowns package.
syncfusion-blazor-charts
syncfusion/blazor-ui-components-skills
Open the skill to read its SKILL.md instructions.
syncfusion-blazor-popups
syncfusion/blazor-ui-components-skills
Open the skill to read its SKILL.md instructions.
syncfusion-blazor-license
syncfusion/blazor-ui-components-skills
Open the skill to read its SKILL.md instructions.
Popular frontend & design skills
setup-matt-pocock-skills
mattpocock/skills
Configure this repo for the engineering skills: set up its issue tracker, triage label vocabulary, and domain doc layout. Run once before first use of the other engineering skills.
frontend-design
anthropics/skills
Guidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Helps with aesthetic direction, typography, and making choices that don't read as templated defaults.
hyperframes-animation
heygen-com/hyperframes
All animation knowledge for HyperFrames — atomic motion rules, multi-phase scene blueprints, scene transitions, broader motion-design techniques, AND the seven runtime adapters (GSAP default, plus Lottie, Three.js, Anime.js, CSS keyframes, Web Animations API, TypeGPU). Use for any motion or animation task: pick 2-4 rules and compose, or load a blueprint, or look up runtime-specific API (e.g. GSAP eases / Lottie player / Three.js mixer). Also covers auditing an existing composition's choreography (animation map) and 24 named text-animation effects. HyperFrames-native: single paused timeline, seek-safe, deterministic.
prototype
mattpocock/skills
Build a throwaway prototype to answer a design question. Use when the user wants to sanity-check whether a state model or logic feels right, or explore what a UI should look like.
hyperframes-core
heygen-com/hyperframes
The HyperFrames composition contract — build one renderable project. Use for composition structure, the data- timing attributes, class="clip", tracks, sub-compositions, variables, framework-owned media playback, deterministic-render rules, and validation. Read before writing composition HTML.
vercel-react-best-practices
vercel-labs/agent-skills
React and Next.js performance optimization guidelines from Vercel Engineering. This skill should be used when writing, reviewing, or refactoring React/Next.js code to ensure optimal performance patterns. Triggers on tasks involving React components, Next.js pages, data fetching, bundle optimization, or performance improvements.