MCPInstall

syncfusion-aspnetcore-sidebar

Implement the Syncfusion ASP.NET Core Sidebar component to create responsive, collapsible navigation containers that adapt seamlessly to mobile and desktop layouts.

Installs
101
Last 24h
—
Trending rank
—
Security
Not audited

Install

Works with every agent the skills CLI supports.

npx skills add https://github.com/syncfusion/aspnetcore-ui-components-skills --skill syncfusion-aspnetcore-sidebar
  1. 01

    Install

    Run the command in your project. The CLI asks which agents to install for.

  2. 02

    Describe the task

    Ask your agent for something this skill covers. It loads syncfusion-aspnetcore-sidebar automatically when relevant.

  3. 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 ASP.NET Core Sidebar

The Sidebar component is an expandable or collapsible navigation container that acts as a side panel to display primary or secondary content alongside the main content area. It provides flexible positioning, multiple expansion types, and responsive behavior ideal for modern web applications.

When to Use This Skill

Use this skill when you need to:

  • Create responsive navigation menus that collapse on mobile and expand on desktop
  • Implement collapsible sidebars with smooth animations and transitions
  • Build docked sidebar panels that reserve persistent space with icon-only views
  • Handle sidebar state management with open/close methods and event callbacks
  • Customize sidebar behavior with media queries, gestures, and backdrop overlays
  • Integrate with ASP.NET Core applications using TagHelper syntax and server-side binding

Documentation and Navigation Guide

Getting Started

📄 Read: references/getting-started.md

  • Installation and NuGet package setup
  • ASP.NET Core project creation with Razor pages
  • TagHelper registration in _ViewImports.cshtml
  • Adding CSS/script resources via CDN or local
  • First working sidebar implementation
  • Script manager registration

Understanding Sidebar Types

📄 Read: references/sidebar-types.md

  • Sidebar type enumeration (Over, Push, Slide, Auto)
  • Over type: floating sidebar above content
  • Push type: sidebar pushes main content aside
  • Slide type: sidebar slides without resizing content
  • Auto type: responsive type selection by screen resolution
  • Changing types at runtime with dataBind()
  • Type selection best practices

Managing Sidebar State

📄 Read: references/managing-state.md

  • isOpen property for initial state
  • show() method to open the sidebar programmatically
  • hide() method to close the sidebar
  • toggle() method for open/close switching
  • Controlling sidebar from button clicks
  • State initialization and persistence
  • Toggle patterns with UI buttons

Positioning and Sizing

📄 Read: references/positioning-and-sizing.md

  • position property (Left or Right placement)
  • width property for custom sidebar dimensions
  • target property for custom context targeting
  • Placing sidebar inside specific containers
  • Responsive sizing strategies
  • Width in pixels vs auto-sizing
  • Multiple sidebars in different positions

Advanced Features

📄 Read: references/advanced-features.md

  • enableDock property for docked state mode
  • dockSize configuration for reserved space
  • closeOnDocumentClick for dismiss-on-click behavior
  • showBackdrop overlay when sidebar is open
  • enableGestures for touch swipe control
  • mediaQuery for responsive breakpoint control
  • enablePersistence for state preservation across page reloads

Events and Callbacks

📄 Read: references/events-and-callbacks.md

  • change event: fires on expand/collapse state changes
  • open event: fires when sidebar opens
  • close event: fires when sidebar closes
  • created event: fires on component initialization
  • destroyed event: fires on component destruction
  • ChangeEventArgs structure with event details
  • EventArgs properties for event handling
  • Binding events with TagHelper syntax

Internationalization and RTL

📄 Read: references/internationalization.md

  • enableRtl property for right-to-left layouts
  • RTL sidebar positioning (right-aligned by default)
  • Mirror positioning and alignment
  • RTL animation and positioning behavior
  • Multi-language sidebar content
  • Combining RTL with positioning properties

Styling and Appearance

📄 Read: references/styling-and-appearance.md

  • animate property to enable/disable transitions
  • zIndex property for layering control with overlays
  • CSS class customization and theming
  • Backdrop styling and opacity
  • Animation duration and easing configuration
  • Theme integration
  • Custom styling best practices

Complete API Reference

📄 Read: references/api-reference.md

  • All 15 properties with types and defaults
  • All 11 methods with signatures and descriptions
  • All 5 events with their argument types
  • Type enumerations (SidebarType, SidebarPosition)
  • Event argument structures (ChangeEventArgs, EventArgs)
  • Cross-references to feature documentation
  • Usage examples for each API

Quick Start Example

Here's a minimal Sidebar implementation with a toggle button:

<ejs-sidebar id="default-sidebar" type="Push" isOpen="false">
    <e-content-template>
        <div style="padding: 20px;">
            <h3>Sidebar Menu</h3>
            <p>Navigation items go here</p>
        </div>
    </e-content-template>
</ejs-sidebar>

<div style="padding: 20px;">
    <ejs-button id="toggleBtn" content="Toggle Sidebar" onclick="toggleSidebar()"></ejs-button>
    <h2>Main Content</h2>
    <p>Your page content appears here</p>
</div>

<script>
var sidebar;

document.addEventListener('DOMContentLoaded', function () {
    sidebar = document.getElementById('default-sidebar').ej2_instances[0];
});

function toggleSidebar() {
    sidebar.toggle();
}
</script>

Common Patterns

Pattern 1: Mobile-Responsive Navigation

Use type="Auto" to automatically switch between Over (mobile) and Push (desktop) based on screen resolution:

<ejs-sidebar id="navbar" type="Auto" isOpen="false">
    <!-- Navigation items -->
</ejs-sidebar>

Pattern 2: Docked Sidebar with Icons

Enable docking with reserved space for icon-only view:

<ejs-sidebar id="dockedbar" 
             enableDock="true" 
             dockSize="60px" 
             type="Push">
    <!-- Icon items -->
</ejs-sidebar>

Pattern 3: Backdrop with Overlay

Show content overlay when sidebar opens:

<ejs-sidebar id="overlaybar" 
             type="Over" 
             showBackdrop="true" 
             closeOnDocumentClick="true">
    <!-- Content -->
</ejs-sidebar>

Pattern 4: Right-Positioned Sidebar

Place sidebar on the right side:

<ejs-sidebar id="rightbar" position="Right" type="Push">
    <!-- Right-side navigation -->
</ejs-sidebar>

Pattern 5: Custom Width Sidebar

Set specific width in pixels:

<ejs-sidebar id="custombar" type="Push" width="320px">
    <!-- Content with 320px width -->
</ejs-sidebar>

Key Properties Overview

PropertyTypePurpose
typeSidebarTypeControls how sidebar expands (Over/Push/Slide/Auto)
positionSidebarPositionSidebar placement (Left/Right)
isOpenbooleanInitial open/closed state
widthstring/numberSidebar width ('auto', '300px', or number)
enableDockbooleanEnables docked state mode
dockSizestring/numberWidth when docked ('auto', '60px', or number)
animatebooleanEnable/disable expansion animations
enableGesturesbooleanEnable touch swipe to expand/collapse
mediaQuerystringCSS media query for responsive behavior
showBackdropbooleanShow overlay when sidebar is open
closeOnDocumentClickbooleanClose sidebar when clicking outside
enableRtlbooleanRight-to-left layout support
zIndexstring/numberLayering for overlay mode (default: 1000)
targetHTMLElement/stringContainer for sidebar (custom context)
enablePersistencebooleanPreserve state across page reloads

Common Use Cases

  • Admin Dashboards: Multi-section dashboards with collapsible navigation
  • E-Commerce Sites: Filter sidebars that collapse on mobile
  • Documentation Sites: Table of contents sidebars
  • Application Menus: Docked icon-based navigation that expands on hover
  • Mobile Apps: Hamburger menus that slide from the side
  • Content Management: Expandable editor sidebars
  • Data Tables: Filtering and column selection sidebars

Next Steps

  1. Start with Getting Started to install and configure
  2. Choose your Sidebar Type based on your layout needs
  3. Learn State Management to control open/close behavior
  4. Explore Advanced Features for docking and responsiveness
  5. Reference Complete API for all properties and methods

Component Overview

The Sidebar component is built on the Syncfusion EJ2 framework and provides:

  • Four expansion types with automatic responsive selection
  • Touch gesture support for mobile devices
  • State persistence across page reloads
  • Event system for open/close/change lifecycle
  • Customizable positioning and sizing
  • Backdrop overlay for modal-like behavior
  • RTL and internationalization support
  • Smooth animations and transitions
  • Full TagHelper integration with ASP.NET Core

For detailed implementation examples and advanced scenarios, refer to the reference guides above.

FAQ

What does the syncfusion-aspnetcore-sidebar skill do?

Implement the Syncfusion ASP.NET Core Sidebar component to create responsive, collapsible navigation containers that adapt seamlessly to mobile and desktop layouts.

How do I install syncfusion-aspnetcore-sidebar?

Run npx skills add https://github.com/syncfusion/aspnetcore-ui-components-skills --skill syncfusion-aspnetcore-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-aspnetcore-sidebar/ (personal) or .claude/skills/syncfusion-aspnetcore-sidebar/ (project).

Which AI agents can use syncfusion-aspnetcore-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-aspnetcore-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-aspnetcore-sidebar?

It is published by syncfusion in syncfusion/aspnetcore-ui-components-skills. It has 101 recorded installs.

More from syncfusion/aspnetcore-ui-components-skills

View all →

syncfusion-aspnetcore-charts

syncfusion/aspnetcore-ui-components-skills

Open the skill to read its SKILL.md instructions.

Frontend & Design112 installs

syncfusion-aspnetcore-common

syncfusion/aspnetcore-ui-components-skills

CONFIGURATION GUIDE — Assist with Syncfusion ASP.NET Core EJ2 components setup, localization, and version compatibility. Use when: installing Syncfusion packages, configuring globalization/localization, selecting compatible versions.

Frontend & Design111 installs

syncfusion-aspnetcore-license

syncfusion/aspnetcore-ui-components-skills

Open the skill to read its SKILL.md instructions.

Frontend & Design111 installs

syncfusion-aspnetcore-grid

syncfusion/aspnetcore-ui-components-skills

Implements Syncfusion ASP.NET Core Grid component for feature-rich data tables and grids. Use this when working with data display, sorting, filtering, grouping, aggregates, editing, or exporting. This skill covers grid configuration, CRUD operations, virtual scrolling or infinite scrolling, hierarchy grids, state persistence, and advanced data management features for data-intensive applications.

Frontend & Design110 installs

syncfusion-aspnetcore-security

syncfusion/aspnetcore-ui-components-skills

Open the skill to read its SKILL.md instructions.

Security108 installs

syncfusion-aspnetcore-gantt-chart

syncfusion/aspnetcore-ui-components-skills

Open the skill to read its SKILL.md instructions.

Frontend & Design108 installs

Popular frontend & design skills

View category →

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 & Design1.1M installs

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.

OfficialFrontend & Design1M installs

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.

Frontend & Design999.2K installs

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.

Frontend & Design930.5K installs

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.

OfficialFrontend & Design843.1K installs