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.
What this skill does
# 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](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](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](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](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](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](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](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](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](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
```blazor
@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](references/state-persistence-targets.md#target-property-behavior---implicit-vs-explicit) 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 in Design
contribute
IncludedLocal-only OSS contribution command center. Auto-refreshes the user's in-flight PR and issue state on invoke so conversations start with full context โ no need to brief Claude on what's in flight. Helps the user find issues to contribute to on GitHub, builds per-repo dossiers of what each upstream expects (CLA, DCO, branch convention, AI policy, draft-first, review bots, issue templates), runs deterministic gates before any external action so AI-assisted contributions don't reach maintainers as slop. State is markdown-only: candidate files at ~/.contribute-system/candidates/, repo dossiers at ~/.contribute-system/research/, append-only event log at ~/.contribute-system/log.jsonl. No database, no cloud calls. Use when the user asks about their PRs / issues / contributions, wants to find new work to take on, claim an issue, build/refresh a repo's dossier, or draft a Design Issue or PR. Trigger with "/contribute", "what's my PR status", "find a contribution", "claim issue X", "draft a Design Issue for Y", "refresh dossier for Z".
architectural-analysis
IncludedUser-triggered deep architectural analysis of a codebase or scoped subtree across eight modes โ information architecture, data flow, integration points, UI surfaces, interaction patterns, data model, control flow, and failure modes. This skill should be used when the user asks to "diagram this codebase," "map the architecture," "show the data flow," "give me an ERD," "trace control flow," "find the integration points," "verify the layout pattern," "audit the UX architecture," or any similar request whose primary deliverable is mermaid diagrams plus cited reports under docs/architecture/. Dispatches haiku/sonnet sub-agents in parallel for per-mode exploration, then verifies every citation mechanically before any node lands in a diagram. Not for one-off prose explanations of code (use code-explanation) or for high-level system design from scratch (use system-design).
mcp
IncludedModel Context Protocol (MCP) server development and tool management. Languages: Python, TypeScript. Capabilities: build MCP servers, integrate external APIs, discover/execute MCP tools, manage multi-server configs, design agent-centric tools. Actions: create, build, integrate, discover, execute, configure MCP servers/tools. Keywords: MCP, Model Context Protocol, MCP server, MCP tool, stdio transport, SSE transport, tool discovery, resource provider, prompt template, external API integration, Gemini CLI MCP, Claude MCP, agent tools, tool execution, server config. Use when: building MCP servers, integrating external APIs as MCP tools, discovering available MCP tools, executing MCP capabilities, configuring multi-server setups, designing tools for AI agents.
react-native-skia
IncludedDesign, build, debug, and optimise high-polish animated graphics in React Native or Expo using @shopify/react-native-skia, Reanimated, and Gesture Handler. Use when the user wants canvas-driven UI, shaders, paths, rich text, image filters, sprite fields, Skottie, video frames, snapshots, web CanvasKit setup, or performance tuning for custom motion-heavy elements such as loaders, hero art, cards, charts, progress indicators, particle systems, or gesture-driven surfaces. Also use when the user asks for fluid, glow, glass, blob, parallax, 60fps/120fps, or GPU-friendly animated effects in React Native, even if they do not explicitly say "Skia". Do not use for ordinary form/layout work with standard views.
plaid
IncludedProduct Led AI Development โ guides founders from idea to launched product. Six capabilities: Idea (discover a product idea), Validate (pressure-test the idea against fatal flaws, problem reality, competition, and 2-week MVP feasibility), Plan (vision intake + document generation), Design (translate image references into a design.md spec), Launch (go-to-market strategy), and Build (roadmap execution). Use when someone says "PLAID", "plaid idea", "help me find an idea", "product idea", "idea from my business", "idea from my expertise", "plaid validate", "validate my idea", "pressure-test", "is this idea good", "find fatal flaws", "validate the problem", "plan a product", "define my vision", "generate a PRD", "product strategy", "plaid design", "design from image", "translate image to design", "create design.md", "extract design tokens", "plaid launch", "go-to-market", "launch plan", "GTM strategy", "launch playbook", "plaid build", "build the app", "start building", or "execute the roadmap".
nextjs-framer-motion-animations
IncludedAdds production-safe Motion for React or Framer Motion animations to Next.js apps, including reveal, hover and tap micro-interactions, whileInView, stagger, AnimatePresence, layout and layoutId transitions, reorder, scroll-linked UI, and lightweight route-content transitions. Use when the user asks to add, refactor, or debug Motion or Framer Motion in App Router or Pages Router codebases, especially around server/client boundaries, reduced motion, LazyMotion, bundle size, hydration, or route transitions. Avoid for GSAP-style timelines, WebGL or 3D scenes, heavy scroll storytelling, or CSS-only effects unless Motion is explicitly requested.