Sidebar
jQueryБоковая навигация приложения: группы, вложенные пункты, сворачивание до иконок и выдвижное меню на мобильном экране.
На этой странице
Пример
<div class="doc-sidebar-demo">
<div class="ui-sidebar-provider" data-ui-sidebar id="demo-sidebar" data-collapsible="icon" data-variant="sidebar" data-side="left" style="--ui-sidebar-width:200px;--ui-sidebar-height:440px">
<aside class="ui-sidebar" data-ui-sidebar-panel aria-label="Навигация приложения">
<div class="ui-sidebar__inner">
<header class="ui-sidebar__header">
<div class="ui-dropdown" data-ui-dropdown data-align="start">
<button class="ui-sidebar__menu-button" data-size="lg" type="button" data-ui-dropdown-trigger aria-label="Рабочее пространство"><span class="ui-sidebar__brand"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="ui-icon lucide lucide-layers" aria-hidden="true" focusable="false"><path d="M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z"></path><path d="M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12"></path><path d="M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17"></path></svg></span><span class="ui-sidebar__label" data-doc-sidebar-workspace>Acme Inc</span><span class="ui-sidebar__chevron"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="ui-icon lucide lucide-chevrons-up-down" aria-hidden="true" focusable="false"><path d="m7 15 5 5 5-5"></path><path d="m7 9 5-5 5 5"></path></svg></span></button>
<div class="ui-dropdown__menu" data-ui-dropdown-menu hidden><div class="ui-dropdown__label">Рабочие пространства</div><button class="ui-dropdown__item" type="button" role="menuitem" data-doc-sidebar-switch="Acme Inc"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="ui-icon lucide lucide-layers" aria-hidden="true" focusable="false"><path d="M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z"></path><path d="M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12"></path><path d="M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17"></path></svg><span>Acme Inc</span></button><button class="ui-dropdown__item" type="button" role="menuitem" data-doc-sidebar-switch="Личное"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="ui-icon lucide lucide-layers" aria-hidden="true" focusable="false"><path d="M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z"></path><path d="M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12"></path><path d="M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17"></path></svg><span>Личное</span></button></div>
</div>
<label class="ui-sr-only" for="demo-sidebar-search">Поиск по меню</label><input class="ui-input ui-sidebar__input" type="search" id="demo-sidebar-search" placeholder="Поиск…" data-doc-sidebar-search>
</header>
<div class="ui-sidebar__content" data-ui-scroll-area-target tabindex="0" aria-label="Пункты навигации"><nav class="ui-sidebar__group" aria-label="Рабочее пространство">
<div class="ui-sidebar__group-label"><span>Рабочее пространство</span></div>
<ul class="ui-sidebar__menu" data-doc-sidebar-navigation>
<li class="ui-sidebar__menu-item"><button class="ui-sidebar__menu-button" type="button" data-doc-sidebar-page="Главная" aria-current="page"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="ui-icon lucide lucide-house" aria-hidden="true" focusable="false"><path d="M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8"></path><path d="M3 10a2 2 0 0 1 .709-1.528l7-6a2 2 0 0 1 2.582 0l7 6A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z"></path></svg><span class="ui-sidebar__label">Главная</span></button></li>
<li class="ui-sidebar__menu-item"><button class="ui-sidebar__menu-button" type="button" data-doc-sidebar-page="Входящие"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="ui-icon lucide lucide-inbox" aria-hidden="true" focusable="false"><polyline points="22 12 16 12 14 15 10 15 8 12 2 12"></polyline><path d="M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z"></path></svg><span class="ui-sidebar__label">Входящие</span><span class="ui-sidebar__menu-badge">5</span></button></li>
<li class="ui-sidebar__menu-item"><details class="ui-sidebar__collapsible" open><summary class="ui-sidebar__menu-button"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="ui-icon lucide lucide-folder" aria-hidden="true" focusable="false"><path d="M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z"></path></svg><span class="ui-sidebar__label">Проекты</span><span class="ui-sidebar__chevron" aria-hidden="true"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="ui-icon lucide lucide-chevron-right" aria-hidden="true" focusable="false"><path d="m9 18 6-6-6-6"></path></svg></span></summary><ul class="ui-sidebar__menu-sub"><li><button class="ui-sidebar__menu-sub-button" type="button" data-doc-sidebar-page="UIkit"><span class="ui-sidebar__label">UIkit</span></button></li><li><button class="ui-sidebar__menu-sub-button" type="button" data-doc-sidebar-page="Сайт"><span class="ui-sidebar__label">Сайт</span></button></li></ul></details></li>
<li class="ui-sidebar__menu-item"><button class="ui-sidebar__menu-button" type="button" data-doc-sidebar-page="Календарь"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="ui-icon lucide lucide-calendar" aria-hidden="true" focusable="false"><path d="M8 2v3"></path><path d="M16 2v3"></path><rect x="3" y="3" width="18" height="18" rx="2"></rect><path d="M3 9h18"></path></svg><span class="ui-sidebar__label">Календарь</span></button></li>
<li class="ui-sidebar__menu-item"><button class="ui-sidebar__menu-button" type="button" data-doc-sidebar-page="Архив · скоро" disabled><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="ui-icon lucide lucide-archive" aria-hidden="true" focusable="false"><rect width="20" height="5" x="2" y="3" rx="1"></rect><path d="M4 8v11a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8"></path><path d="M10 12h4"></path></svg><span class="ui-sidebar__label">Архив · скоро</span></button></li>
</ul>
</nav>
<div class="ui-sidebar__separator" role="separator"></div>
<nav class="ui-sidebar__group" aria-label="Проекты"><div class="ui-sidebar__group-label"><span>Избранное</span><button class="ui-sidebar__menu-action" type="button" data-doc-sidebar-add aria-label="Добавить проект"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="ui-icon lucide lucide-plus" aria-hidden="true" focusable="false"><path d="M5 12h14"></path><path d="M12 5v14"></path></svg></button></div><ul class="ui-sidebar__menu" data-doc-sidebar-projects><li class="ui-sidebar__menu-item"><button class="ui-sidebar__menu-button" type="button" data-doc-sidebar-page="Дизайн-система"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="ui-icon lucide lucide-shapes" aria-hidden="true" focusable="false"><path d="M8.3 10a.7.7 0 0 1-.626-1.079L11.4 3a.7.7 0 0 1 1.198-.043L16.3 8.9a.7.7 0 0 1-.572 1.1Z"></path><rect x="3" y="14" width="7" height="7" rx="1"></rect><circle cx="17.5" cy="17.5" r="3.5"></circle></svg><span class="ui-sidebar__label">Дизайн-система</span></button><button class="ui-sidebar__menu-action" type="button" data-doc-sidebar-notice="Проект добавлен в избранное." aria-label="В избранное" data-show-on-hover="true"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="ui-icon lucide lucide-star" aria-hidden="true" focusable="false"><path d="M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z"></path></svg></button></li><li class="ui-sidebar__menu-item"><button class="ui-sidebar__menu-button" type="button" data-doc-sidebar-page="Документация"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="ui-icon lucide lucide-book-open" aria-hidden="true" focusable="false"><path d="M12 5v16"></path><path d="M20.001 19A2 2 0 0022 17V5a2 2 0 00-1.999-2L16 3.002A5 5 0 0012 5a5 5 0 00-4-2H4a2 2 0 00-2 2v12a2 2 0 001.999 2H8a5 5 0 014 2 5 5 0 014-2z"></path></svg><span class="ui-sidebar__label">Документация</span></button></li></ul></nav></div>
<footer class="ui-sidebar__footer"><div class="ui-dropdown" data-ui-dropdown data-side="top" data-align="start"><button class="ui-sidebar__menu-button" data-size="lg" type="button" data-ui-dropdown-trigger aria-label="Меню профиля"><span class="doc-sidebar-avatar" aria-hidden="true">АС</span><span class="ui-sidebar__label">Анна Смирнова<small>anna@example.com</small></span><span class="ui-sidebar__chevron"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="ui-icon lucide lucide-chevrons-up-down" aria-hidden="true" focusable="false"><path d="m7 15 5 5 5-5"></path><path d="m7 9 5-5 5 5"></path></svg></span></button><div class="ui-dropdown__menu" data-ui-dropdown-menu hidden><button class="ui-dropdown__item" type="button" role="menuitem" data-doc-sidebar-page="Профиль"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="ui-icon lucide lucide-user" aria-hidden="true" focusable="false"><path d="M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2"></path><circle cx="12" cy="7" r="4"></circle></svg><span>Профиль</span></button><button class="ui-dropdown__item" type="button" role="menuitem" data-doc-sidebar-page="Настройки"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="ui-icon lucide lucide-settings" aria-hidden="true" focusable="false"><path d="M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915"></path><circle cx="12" cy="12" r="3"></circle></svg><span>Настройки</span></button></div></div></footer>
</div>
<button class="ui-sidebar__rail" type="button" data-ui-sidebar-rail tabindex="-1" aria-label="Переключить панель"></button>
</aside>
<div class="ui-sidebar__inset doc-sidebar-inset">
<div class="doc-sidebar-toolbar"><button class="ui-button ui-button--ghost ui-button--icon-sm" type="button" data-ui-sidebar-trigger aria-label="Переключить панель"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="ui-icon lucide lucide-panel-left" aria-hidden="true" focusable="false"><rect width="18" height="18" x="3" y="3" rx="2"></rect><path d="M9 3v18"></path></svg></button><span class="doc-sidebar-toolbar-divider" aria-hidden="true"></span><span data-doc-sidebar-breadcrumb>Рабочее пространство</span></div>
<div class="doc-sidebar-main" data-ui-scroll-area-target><div class="doc-sidebar-heading"><span>Обзор</span><h3 data-doc-sidebar-title>Главная</h3><p data-doc-sidebar-description>Ваши проекты, задачи и последние обновления.</p></div><div class="doc-sidebar-metrics"><article class="ui-card"><div class="ui-card__content"><span>Проекты</span><strong>12</strong><small>+2 за неделю</small></div></article><article class="ui-card"><div class="ui-card__content"><span>Задачи</span><strong>28</strong><small>8 завершено</small></div></article></div><div class="doc-sidebar-activity"><h4>Последняя активность</h4><p><span class="doc-sidebar-activity-dot"></span>Обновлена библиотека UIkit</p><p><span class="doc-sidebar-activity-dot"></span>Добавлены новые компоненты</p><p><span class="doc-sidebar-activity-dot"></span>Готовы макеты приложения</p></div></div>
</div>
</div>
<p class="ui-sr-only" role="status" data-doc-sidebar-status></p>
</div>Подключение
Компонент включён в dist/ui.min.css. Подключите сборку один раз и добавьте ui-root на контейнер интерфейса.
<link rel="stylesheet" href="ui-kit/dist/ui.min.css">
<link rel="stylesheet" href="ui-kit/dist/ui-icons.min.css">
<body class="ui-root">
<!-- Компоненты вашего приложения -->
</body>Для выборочной сборки добавьте импорт в src/css/index.css после токенов и базовых стилей:
@import "./components/sidebar.css" layer(components);Для поведения подключите jQuery перед UIkit. Атрибуты data-ui-* инициализируются при готовности DOM.
<script defer src="vendor/jquery.min.js"></script>
<script defer src="ui-kit/dist/ui-icons.min.js"></script>
<script defer src="ui-kit/dist/ui.min.js"></script>Для выборочной сборки: sidebar.css и core.js → sidebar.js; для полос прокрутки — Scroll Area. Dropdown Menu нужен только для меню рабочего пространства и профиля в примерах. SVG Lucide и шрифт Nunito Sans загружаются из локальной сборки.
Использование
Добавьте data-ui-sidebar на Provider и data-ui-sidebar-panel на единственную панель внутри него. SidebarInset занимает оставшееся место. Заголовок и подвал находятся за пределами прокручиваемого SidebarContent. Ссылки используют обычные href; текущую страницу отмечайте aria-current="page".
<div class="ui-sidebar-provider" data-ui-sidebar data-collapsible="icon">
<aside class="ui-sidebar" data-ui-sidebar-panel aria-label="Основная навигация">
<div class="ui-sidebar__inner">
<header class="ui-sidebar__header">Моё приложение</header>
<nav class="ui-sidebar__content" data-ui-scroll-area-target aria-label="Разделы">
<div class="ui-sidebar__group">
<div class="ui-sidebar__group-label">Приложение</div>
<ul class="ui-sidebar__menu">
<li class="ui-sidebar__menu-item"><a class="ui-sidebar__menu-button" href="/" aria-current="page"><i class="ui-icon" data-lucide="house" aria-hidden="true"></i><span class="ui-sidebar__label">Главная</span></a></li>
</ul>
</div>
</nav>
<footer class="ui-sidebar__footer">Профиль</footer>
</div>
</aside>
<main class="ui-sidebar__inset">
<button class="ui-button ui-button--ghost ui-button--icon" type="button" data-ui-sidebar-trigger aria-label="Переключить панель"><i class="ui-icon" data-lucide="panel-left" aria-hidden="true"></i></button>
<!-- Основное содержимое -->
</main>
</div>Composition · Компоновка
SidebarProvider → .ui-sidebar-provider[data-ui-sidebar]
├── Sidebar → .ui-sidebar[data-ui-sidebar-panel]
│ ├── .ui-sidebar__inner
│ │ ├── SidebarHeader → .ui-sidebar__header
│ │ ├── SidebarContent → .ui-sidebar__content
│ │ │ └── SidebarGroup → .ui-sidebar__group
│ │ │ └── SidebarMenu → .ui-sidebar__menu
│ │ └── SidebarFooter → .ui-sidebar__footer
│ └── SidebarRail → [data-ui-sidebar-rail]
└── SidebarInset → .ui-sidebar__inset
└── SidebarTrigger → [data-ui-sidebar-trigger]Offcanvas · Скрытая панель
data-collapsible="offcanvas" полностью скрывает панель и освобождает место. Невидимая навигация исключается из Tab-порядка. Это значение по умолчанию.
<div class="doc-sidebar-demo">
<div class="ui-sidebar-provider" data-ui-sidebar id="demo-sidebar-offcanvas" data-collapsible="offcanvas" data-variant="sidebar" data-side="left" style="--ui-sidebar-width:200px;--ui-sidebar-height:440px">
<aside class="ui-sidebar" data-ui-sidebar-panel aria-label="Навигация приложения">
<div class="ui-sidebar__inner">
<header class="ui-sidebar__header">
<div class="ui-dropdown" data-ui-dropdown data-align="start">
<button class="ui-sidebar__menu-button" data-size="lg" type="button" data-ui-dropdown-trigger aria-label="Рабочее пространство"><span class="ui-sidebar__brand"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="ui-icon lucide lucide-layers" aria-hidden="true" focusable="false"><path d="M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z"></path><path d="M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12"></path><path d="M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17"></path></svg></span><span class="ui-sidebar__label" data-doc-sidebar-workspace>Acme Inc</span><span class="ui-sidebar__chevron"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="ui-icon lucide lucide-chevrons-up-down" aria-hidden="true" focusable="false"><path d="m7 15 5 5 5-5"></path><path d="m7 9 5-5 5 5"></path></svg></span></button>
<div class="ui-dropdown__menu" data-ui-dropdown-menu hidden><div class="ui-dropdown__label">Рабочие пространства</div><button class="ui-dropdown__item" type="button" role="menuitem" data-doc-sidebar-switch="Acme Inc"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="ui-icon lucide lucide-layers" aria-hidden="true" focusable="false"><path d="M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z"></path><path d="M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12"></path><path d="M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17"></path></svg><span>Acme Inc</span></button><button class="ui-dropdown__item" type="button" role="menuitem" data-doc-sidebar-switch="Личное"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="ui-icon lucide lucide-layers" aria-hidden="true" focusable="false"><path d="M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z"></path><path d="M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12"></path><path d="M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17"></path></svg><span>Личное</span></button></div>
</div>
<label class="ui-sr-only" for="demo-sidebar-offcanvas-search">Поиск по меню</label><input class="ui-input ui-sidebar__input" type="search" id="demo-sidebar-offcanvas-search" placeholder="Поиск…" data-doc-sidebar-search>
</header>
<div class="ui-sidebar__content" data-ui-scroll-area-target tabindex="0" aria-label="Пункты навигации"><nav class="ui-sidebar__group" aria-label="Рабочее пространство">
<div class="ui-sidebar__group-label"><span>Рабочее пространство</span></div>
<ul class="ui-sidebar__menu" data-doc-sidebar-navigation>
<li class="ui-sidebar__menu-item"><button class="ui-sidebar__menu-button" type="button" data-doc-sidebar-page="Главная" aria-current="page"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="ui-icon lucide lucide-house" aria-hidden="true" focusable="false"><path d="M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8"></path><path d="M3 10a2 2 0 0 1 .709-1.528l7-6a2 2 0 0 1 2.582 0l7 6A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z"></path></svg><span class="ui-sidebar__label">Главная</span></button></li>
<li class="ui-sidebar__menu-item"><button class="ui-sidebar__menu-button" type="button" data-doc-sidebar-page="Входящие"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="ui-icon lucide lucide-inbox" aria-hidden="true" focusable="false"><polyline points="22 12 16 12 14 15 10 15 8 12 2 12"></polyline><path d="M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z"></path></svg><span class="ui-sidebar__label">Входящие</span><span class="ui-sidebar__menu-badge">5</span></button></li>
<li class="ui-sidebar__menu-item"><details class="ui-sidebar__collapsible" open><summary class="ui-sidebar__menu-button"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="ui-icon lucide lucide-folder" aria-hidden="true" focusable="false"><path d="M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z"></path></svg><span class="ui-sidebar__label">Проекты</span><span class="ui-sidebar__chevron" aria-hidden="true"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="ui-icon lucide lucide-chevron-right" aria-hidden="true" focusable="false"><path d="m9 18 6-6-6-6"></path></svg></span></summary><ul class="ui-sidebar__menu-sub"><li><button class="ui-sidebar__menu-sub-button" type="button" data-doc-sidebar-page="UIkit"><span class="ui-sidebar__label">UIkit</span></button></li><li><button class="ui-sidebar__menu-sub-button" type="button" data-doc-sidebar-page="Сайт"><span class="ui-sidebar__label">Сайт</span></button></li></ul></details></li>
<li class="ui-sidebar__menu-item"><button class="ui-sidebar__menu-button" type="button" data-doc-sidebar-page="Календарь"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="ui-icon lucide lucide-calendar" aria-hidden="true" focusable="false"><path d="M8 2v3"></path><path d="M16 2v3"></path><rect x="3" y="3" width="18" height="18" rx="2"></rect><path d="M3 9h18"></path></svg><span class="ui-sidebar__label">Календарь</span></button></li>
<li class="ui-sidebar__menu-item"><button class="ui-sidebar__menu-button" type="button" data-doc-sidebar-page="Архив · скоро" disabled><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="ui-icon lucide lucide-archive" aria-hidden="true" focusable="false"><rect width="20" height="5" x="2" y="3" rx="1"></rect><path d="M4 8v11a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8"></path><path d="M10 12h4"></path></svg><span class="ui-sidebar__label">Архив · скоро</span></button></li>
</ul>
</nav>
<div class="ui-sidebar__separator" role="separator"></div>
<nav class="ui-sidebar__group" aria-label="Проекты"><div class="ui-sidebar__group-label"><span>Избранное</span><button class="ui-sidebar__menu-action" type="button" data-doc-sidebar-add aria-label="Добавить проект"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="ui-icon lucide lucide-plus" aria-hidden="true" focusable="false"><path d="M5 12h14"></path><path d="M12 5v14"></path></svg></button></div><ul class="ui-sidebar__menu" data-doc-sidebar-projects><li class="ui-sidebar__menu-item"><button class="ui-sidebar__menu-button" type="button" data-doc-sidebar-page="Дизайн-система"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="ui-icon lucide lucide-shapes" aria-hidden="true" focusable="false"><path d="M8.3 10a.7.7 0 0 1-.626-1.079L11.4 3a.7.7 0 0 1 1.198-.043L16.3 8.9a.7.7 0 0 1-.572 1.1Z"></path><rect x="3" y="14" width="7" height="7" rx="1"></rect><circle cx="17.5" cy="17.5" r="3.5"></circle></svg><span class="ui-sidebar__label">Дизайн-система</span></button><button class="ui-sidebar__menu-action" type="button" data-doc-sidebar-notice="Проект добавлен в избранное." aria-label="В избранное" data-show-on-hover="true"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="ui-icon lucide lucide-star" aria-hidden="true" focusable="false"><path d="M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z"></path></svg></button></li><li class="ui-sidebar__menu-item"><button class="ui-sidebar__menu-button" type="button" data-doc-sidebar-page="Документация"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="ui-icon lucide lucide-book-open" aria-hidden="true" focusable="false"><path d="M12 5v16"></path><path d="M20.001 19A2 2 0 0022 17V5a2 2 0 00-1.999-2L16 3.002A5 5 0 0012 5a5 5 0 00-4-2H4a2 2 0 00-2 2v12a2 2 0 001.999 2H8a5 5 0 014 2 5 5 0 014-2z"></path></svg><span class="ui-sidebar__label">Документация</span></button></li></ul></nav></div>
<footer class="ui-sidebar__footer"><div class="ui-dropdown" data-ui-dropdown data-side="top" data-align="start"><button class="ui-sidebar__menu-button" data-size="lg" type="button" data-ui-dropdown-trigger aria-label="Меню профиля"><span class="doc-sidebar-avatar" aria-hidden="true">АС</span><span class="ui-sidebar__label">Анна Смирнова<small>anna@example.com</small></span><span class="ui-sidebar__chevron"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="ui-icon lucide lucide-chevrons-up-down" aria-hidden="true" focusable="false"><path d="m7 15 5 5 5-5"></path><path d="m7 9 5-5 5 5"></path></svg></span></button><div class="ui-dropdown__menu" data-ui-dropdown-menu hidden><button class="ui-dropdown__item" type="button" role="menuitem" data-doc-sidebar-page="Профиль"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="ui-icon lucide lucide-user" aria-hidden="true" focusable="false"><path d="M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2"></path><circle cx="12" cy="7" r="4"></circle></svg><span>Профиль</span></button><button class="ui-dropdown__item" type="button" role="menuitem" data-doc-sidebar-page="Настройки"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="ui-icon lucide lucide-settings" aria-hidden="true" focusable="false"><path d="M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915"></path><circle cx="12" cy="12" r="3"></circle></svg><span>Настройки</span></button></div></div></footer>
</div>
<button class="ui-sidebar__rail" type="button" data-ui-sidebar-rail tabindex="-1" aria-label="Переключить панель"></button>
</aside>
<div class="ui-sidebar__inset doc-sidebar-inset">
<div class="doc-sidebar-toolbar"><button class="ui-button ui-button--ghost ui-button--icon-sm" type="button" data-ui-sidebar-trigger aria-label="Переключить панель"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="ui-icon lucide lucide-panel-left" aria-hidden="true" focusable="false"><rect width="18" height="18" x="3" y="3" rx="2"></rect><path d="M9 3v18"></path></svg></button><span class="doc-sidebar-toolbar-divider" aria-hidden="true"></span><span data-doc-sidebar-breadcrumb>Рабочее пространство</span></div>
<div class="doc-sidebar-main" data-ui-scroll-area-target><div class="doc-sidebar-heading"><span>Обзор</span><h3 data-doc-sidebar-title>Главная</h3><p data-doc-sidebar-description>Ваши проекты, задачи и последние обновления.</p></div><div class="doc-sidebar-metrics"><article class="ui-card"><div class="ui-card__content"><span>Проекты</span><strong>12</strong><small>+2 за неделю</small></div></article><article class="ui-card"><div class="ui-card__content"><span>Задачи</span><strong>28</strong><small>8 завершено</small></div></article></div><div class="doc-sidebar-activity"><h4>Последняя активность</h4><p><span class="doc-sidebar-activity-dot"></span>Обновлена библиотека UIkit</p><p><span class="doc-sidebar-activity-dot"></span>Добавлены новые компоненты</p><p><span class="doc-sidebar-activity-dot"></span>Готовы макеты приложения</p></div></div>
</div>
</div>
<p class="ui-sr-only" role="status" data-doc-sidebar-status></p>
</div>Icon · Сворачивание до иконок
data-collapsible="icon" оставляет полосу иконок шириной 56px. Названия сохраняются в доступных именах и нативных подсказках. Основной пример показывает этот режим. Группы, вложенные пункты, поиск и счётчики скрываются до раскрытия панели.
None · Без сворачивания
data-collapsible="none" отключает сворачивание на десктопе. На мобильном та же навигация остаётся доступной через выдвижное меню.
<div class="doc-sidebar-demo">
<div class="ui-sidebar-provider" data-ui-sidebar id="demo-sidebar-fixed" data-collapsible="none" data-variant="sidebar" data-side="left" style="--ui-sidebar-width:200px;--ui-sidebar-height:440px">
<aside class="ui-sidebar" data-ui-sidebar-panel aria-label="Навигация приложения">
<div class="ui-sidebar__inner">
<header class="ui-sidebar__header">
<div class="ui-dropdown" data-ui-dropdown data-align="start">
<button class="ui-sidebar__menu-button" data-size="lg" type="button" data-ui-dropdown-trigger aria-label="Рабочее пространство"><span class="ui-sidebar__brand"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="ui-icon lucide lucide-layers" aria-hidden="true" focusable="false"><path d="M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z"></path><path d="M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12"></path><path d="M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17"></path></svg></span><span class="ui-sidebar__label" data-doc-sidebar-workspace>Acme Inc</span><span class="ui-sidebar__chevron"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="ui-icon lucide lucide-chevrons-up-down" aria-hidden="true" focusable="false"><path d="m7 15 5 5 5-5"></path><path d="m7 9 5-5 5 5"></path></svg></span></button>
<div class="ui-dropdown__menu" data-ui-dropdown-menu hidden><div class="ui-dropdown__label">Рабочие пространства</div><button class="ui-dropdown__item" type="button" role="menuitem" data-doc-sidebar-switch="Acme Inc"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="ui-icon lucide lucide-layers" aria-hidden="true" focusable="false"><path d="M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z"></path><path d="M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12"></path><path d="M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17"></path></svg><span>Acme Inc</span></button><button class="ui-dropdown__item" type="button" role="menuitem" data-doc-sidebar-switch="Личное"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="ui-icon lucide lucide-layers" aria-hidden="true" focusable="false"><path d="M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z"></path><path d="M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12"></path><path d="M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17"></path></svg><span>Личное</span></button></div>
</div>
<label class="ui-sr-only" for="demo-sidebar-fixed-search">Поиск по меню</label><input class="ui-input ui-sidebar__input" type="search" id="demo-sidebar-fixed-search" placeholder="Поиск…" data-doc-sidebar-search>
</header>
<div class="ui-sidebar__content" data-ui-scroll-area-target tabindex="0" aria-label="Пункты навигации"><nav class="ui-sidebar__group" aria-label="Рабочее пространство">
<div class="ui-sidebar__group-label"><span>Рабочее пространство</span></div>
<ul class="ui-sidebar__menu" data-doc-sidebar-navigation>
<li class="ui-sidebar__menu-item"><button class="ui-sidebar__menu-button" type="button" data-doc-sidebar-page="Главная" aria-current="page"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="ui-icon lucide lucide-house" aria-hidden="true" focusable="false"><path d="M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8"></path><path d="M3 10a2 2 0 0 1 .709-1.528l7-6a2 2 0 0 1 2.582 0l7 6A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z"></path></svg><span class="ui-sidebar__label">Главная</span></button></li>
<li class="ui-sidebar__menu-item"><button class="ui-sidebar__menu-button" type="button" data-doc-sidebar-page="Входящие"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="ui-icon lucide lucide-inbox" aria-hidden="true" focusable="false"><polyline points="22 12 16 12 14 15 10 15 8 12 2 12"></polyline><path d="M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z"></path></svg><span class="ui-sidebar__label">Входящие</span><span class="ui-sidebar__menu-badge">5</span></button></li>
<li class="ui-sidebar__menu-item"><button class="ui-sidebar__menu-button" type="button" data-doc-sidebar-page="Проекты"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="ui-icon lucide lucide-folder" aria-hidden="true" focusable="false"><path d="M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z"></path></svg><span class="ui-sidebar__label">Проекты</span></button></li>
<li class="ui-sidebar__menu-item"><button class="ui-sidebar__menu-button" type="button" data-doc-sidebar-page="Календарь"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="ui-icon lucide lucide-calendar" aria-hidden="true" focusable="false"><path d="M8 2v3"></path><path d="M16 2v3"></path><rect x="3" y="3" width="18" height="18" rx="2"></rect><path d="M3 9h18"></path></svg><span class="ui-sidebar__label">Календарь</span></button></li>
<li class="ui-sidebar__menu-item"><button class="ui-sidebar__menu-button" type="button" data-doc-sidebar-page="Архив · скоро" disabled><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="ui-icon lucide lucide-archive" aria-hidden="true" focusable="false"><rect width="20" height="5" x="2" y="3" rx="1"></rect><path d="M4 8v11a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8"></path><path d="M10 12h4"></path></svg><span class="ui-sidebar__label">Архив · скоро</span></button></li>
</ul>
</nav>
<div class="ui-sidebar__separator" role="separator"></div>
<nav class="ui-sidebar__group" aria-label="Проекты"><div class="ui-sidebar__group-label"><span>Избранное</span><button class="ui-sidebar__menu-action" type="button" data-doc-sidebar-add aria-label="Добавить проект"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="ui-icon lucide lucide-plus" aria-hidden="true" focusable="false"><path d="M5 12h14"></path><path d="M12 5v14"></path></svg></button></div><ul class="ui-sidebar__menu" data-doc-sidebar-projects><li class="ui-sidebar__menu-item"><button class="ui-sidebar__menu-button" type="button" data-doc-sidebar-page="Дизайн-система"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="ui-icon lucide lucide-shapes" aria-hidden="true" focusable="false"><path d="M8.3 10a.7.7 0 0 1-.626-1.079L11.4 3a.7.7 0 0 1 1.198-.043L16.3 8.9a.7.7 0 0 1-.572 1.1Z"></path><rect x="3" y="14" width="7" height="7" rx="1"></rect><circle cx="17.5" cy="17.5" r="3.5"></circle></svg><span class="ui-sidebar__label">Дизайн-система</span></button><button class="ui-sidebar__menu-action" type="button" data-doc-sidebar-notice="Проект добавлен в избранное." aria-label="В избранное" data-show-on-hover="true"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="ui-icon lucide lucide-star" aria-hidden="true" focusable="false"><path d="M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z"></path></svg></button></li><li class="ui-sidebar__menu-item"><button class="ui-sidebar__menu-button" type="button" data-doc-sidebar-page="Документация"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="ui-icon lucide lucide-book-open" aria-hidden="true" focusable="false"><path d="M12 5v16"></path><path d="M20.001 19A2 2 0 0022 17V5a2 2 0 00-1.999-2L16 3.002A5 5 0 0012 5a5 5 0 00-4-2H4a2 2 0 00-2 2v12a2 2 0 001.999 2H8a5 5 0 014 2 5 5 0 014-2z"></path></svg><span class="ui-sidebar__label">Документация</span></button></li></ul></nav></div>
<footer class="ui-sidebar__footer"><div class="ui-dropdown" data-ui-dropdown data-side="top" data-align="start"><button class="ui-sidebar__menu-button" data-size="lg" type="button" data-ui-dropdown-trigger aria-label="Меню профиля"><span class="doc-sidebar-avatar" aria-hidden="true">АС</span><span class="ui-sidebar__label">Анна Смирнова<small>anna@example.com</small></span><span class="ui-sidebar__chevron"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="ui-icon lucide lucide-chevrons-up-down" aria-hidden="true" focusable="false"><path d="m7 15 5 5 5-5"></path><path d="m7 9 5-5 5 5"></path></svg></span></button><div class="ui-dropdown__menu" data-ui-dropdown-menu hidden><button class="ui-dropdown__item" type="button" role="menuitem" data-doc-sidebar-page="Профиль"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="ui-icon lucide lucide-user" aria-hidden="true" focusable="false"><path d="M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2"></path><circle cx="12" cy="7" r="4"></circle></svg><span>Профиль</span></button><button class="ui-dropdown__item" type="button" role="menuitem" data-doc-sidebar-page="Настройки"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="ui-icon lucide lucide-settings" aria-hidden="true" focusable="false"><path d="M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915"></path><circle cx="12" cy="12" r="3"></circle></svg><span>Настройки</span></button></div></div></footer>
</div>
<button class="ui-sidebar__rail" type="button" data-ui-sidebar-rail tabindex="-1" aria-label="Переключить панель"></button>
</aside>
<div class="ui-sidebar__inset doc-sidebar-inset">
<div class="doc-sidebar-toolbar"><button class="ui-button ui-button--ghost ui-button--icon-sm" type="button" data-ui-sidebar-trigger aria-label="Переключить панель"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="ui-icon lucide lucide-panel-left" aria-hidden="true" focusable="false"><rect width="18" height="18" x="3" y="3" rx="2"></rect><path d="M9 3v18"></path></svg></button><span class="doc-sidebar-toolbar-divider" aria-hidden="true"></span><span data-doc-sidebar-breadcrumb>Рабочее пространство</span></div>
<div class="doc-sidebar-main" data-ui-scroll-area-target><div class="doc-sidebar-heading"><span>Обзор</span><h3 data-doc-sidebar-title>Главная</h3><p data-doc-sidebar-description>Ваши проекты, задачи и последние обновления.</p></div><div class="doc-sidebar-metrics"><article class="ui-card"><div class="ui-card__content"><span>Проекты</span><strong>12</strong><small>+2 за неделю</small></div></article><article class="ui-card"><div class="ui-card__content"><span>Задачи</span><strong>28</strong><small>8 завершено</small></div></article></div><div class="doc-sidebar-activity"><h4>Последняя активность</h4><p><span class="doc-sidebar-activity-dot"></span>Обновлена библиотека UIkit</p><p><span class="doc-sidebar-activity-dot"></span>Добавлены новые компоненты</p><p><span class="doc-sidebar-activity-dot"></span>Готовы макеты приложения</p></div></div>
</div>
</div>
<p class="ui-sr-only" role="status" data-doc-sidebar-status></p>
</div>Floating · Плавающая панель
data-variant="floating" добавляет внешние отступы, границу, скругление и тень.
<div class="doc-sidebar-demo">
<div class="ui-sidebar-provider" data-ui-sidebar id="demo-sidebar-floating" data-collapsible="icon" data-variant="floating" data-side="left" style="--ui-sidebar-width:200px;--ui-sidebar-height:440px">
<aside class="ui-sidebar" data-ui-sidebar-panel aria-label="Навигация приложения">
<div class="ui-sidebar__inner">
<header class="ui-sidebar__header">
<div class="ui-dropdown" data-ui-dropdown data-align="start">
<button class="ui-sidebar__menu-button" data-size="lg" type="button" data-ui-dropdown-trigger aria-label="Рабочее пространство"><span class="ui-sidebar__brand"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="ui-icon lucide lucide-layers" aria-hidden="true" focusable="false"><path d="M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z"></path><path d="M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12"></path><path d="M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17"></path></svg></span><span class="ui-sidebar__label" data-doc-sidebar-workspace>Acme Inc</span><span class="ui-sidebar__chevron"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="ui-icon lucide lucide-chevrons-up-down" aria-hidden="true" focusable="false"><path d="m7 15 5 5 5-5"></path><path d="m7 9 5-5 5 5"></path></svg></span></button>
<div class="ui-dropdown__menu" data-ui-dropdown-menu hidden><div class="ui-dropdown__label">Рабочие пространства</div><button class="ui-dropdown__item" type="button" role="menuitem" data-doc-sidebar-switch="Acme Inc"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="ui-icon lucide lucide-layers" aria-hidden="true" focusable="false"><path d="M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z"></path><path d="M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12"></path><path d="M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17"></path></svg><span>Acme Inc</span></button><button class="ui-dropdown__item" type="button" role="menuitem" data-doc-sidebar-switch="Личное"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="ui-icon lucide lucide-layers" aria-hidden="true" focusable="false"><path d="M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z"></path><path d="M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12"></path><path d="M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17"></path></svg><span>Личное</span></button></div>
</div>
<label class="ui-sr-only" for="demo-sidebar-floating-search">Поиск по меню</label><input class="ui-input ui-sidebar__input" type="search" id="demo-sidebar-floating-search" placeholder="Поиск…" data-doc-sidebar-search>
</header>
<div class="ui-sidebar__content" data-ui-scroll-area-target tabindex="0" aria-label="Пункты навигации"><nav class="ui-sidebar__group" aria-label="Рабочее пространство">
<div class="ui-sidebar__group-label"><span>Рабочее пространство</span></div>
<ul class="ui-sidebar__menu" data-doc-sidebar-navigation>
<li class="ui-sidebar__menu-item"><button class="ui-sidebar__menu-button" type="button" data-doc-sidebar-page="Главная" aria-current="page"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="ui-icon lucide lucide-house" aria-hidden="true" focusable="false"><path d="M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8"></path><path d="M3 10a2 2 0 0 1 .709-1.528l7-6a2 2 0 0 1 2.582 0l7 6A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z"></path></svg><span class="ui-sidebar__label">Главная</span></button></li>
<li class="ui-sidebar__menu-item"><button class="ui-sidebar__menu-button" type="button" data-doc-sidebar-page="Входящие"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="ui-icon lucide lucide-inbox" aria-hidden="true" focusable="false"><polyline points="22 12 16 12 14 15 10 15 8 12 2 12"></polyline><path d="M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z"></path></svg><span class="ui-sidebar__label">Входящие</span><span class="ui-sidebar__menu-badge">5</span></button></li>
<li class="ui-sidebar__menu-item"><details class="ui-sidebar__collapsible" open><summary class="ui-sidebar__menu-button"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="ui-icon lucide lucide-folder" aria-hidden="true" focusable="false"><path d="M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z"></path></svg><span class="ui-sidebar__label">Проекты</span><span class="ui-sidebar__chevron" aria-hidden="true"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="ui-icon lucide lucide-chevron-right" aria-hidden="true" focusable="false"><path d="m9 18 6-6-6-6"></path></svg></span></summary><ul class="ui-sidebar__menu-sub"><li><button class="ui-sidebar__menu-sub-button" type="button" data-doc-sidebar-page="UIkit"><span class="ui-sidebar__label">UIkit</span></button></li><li><button class="ui-sidebar__menu-sub-button" type="button" data-doc-sidebar-page="Сайт"><span class="ui-sidebar__label">Сайт</span></button></li></ul></details></li>
<li class="ui-sidebar__menu-item"><button class="ui-sidebar__menu-button" type="button" data-doc-sidebar-page="Календарь"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="ui-icon lucide lucide-calendar" aria-hidden="true" focusable="false"><path d="M8 2v3"></path><path d="M16 2v3"></path><rect x="3" y="3" width="18" height="18" rx="2"></rect><path d="M3 9h18"></path></svg><span class="ui-sidebar__label">Календарь</span></button></li>
<li class="ui-sidebar__menu-item"><button class="ui-sidebar__menu-button" type="button" data-doc-sidebar-page="Архив · скоро" disabled><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="ui-icon lucide lucide-archive" aria-hidden="true" focusable="false"><rect width="20" height="5" x="2" y="3" rx="1"></rect><path d="M4 8v11a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8"></path><path d="M10 12h4"></path></svg><span class="ui-sidebar__label">Архив · скоро</span></button></li>
</ul>
</nav>
<div class="ui-sidebar__separator" role="separator"></div>
<nav class="ui-sidebar__group" aria-label="Проекты"><div class="ui-sidebar__group-label"><span>Избранное</span><button class="ui-sidebar__menu-action" type="button" data-doc-sidebar-add aria-label="Добавить проект"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="ui-icon lucide lucide-plus" aria-hidden="true" focusable="false"><path d="M5 12h14"></path><path d="M12 5v14"></path></svg></button></div><ul class="ui-sidebar__menu" data-doc-sidebar-projects><li class="ui-sidebar__menu-item"><button class="ui-sidebar__menu-button" type="button" data-doc-sidebar-page="Дизайн-система"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="ui-icon lucide lucide-shapes" aria-hidden="true" focusable="false"><path d="M8.3 10a.7.7 0 0 1-.626-1.079L11.4 3a.7.7 0 0 1 1.198-.043L16.3 8.9a.7.7 0 0 1-.572 1.1Z"></path><rect x="3" y="14" width="7" height="7" rx="1"></rect><circle cx="17.5" cy="17.5" r="3.5"></circle></svg><span class="ui-sidebar__label">Дизайн-система</span></button><button class="ui-sidebar__menu-action" type="button" data-doc-sidebar-notice="Проект добавлен в избранное." aria-label="В избранное" data-show-on-hover="true"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="ui-icon lucide lucide-star" aria-hidden="true" focusable="false"><path d="M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z"></path></svg></button></li><li class="ui-sidebar__menu-item"><button class="ui-sidebar__menu-button" type="button" data-doc-sidebar-page="Документация"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="ui-icon lucide lucide-book-open" aria-hidden="true" focusable="false"><path d="M12 5v16"></path><path d="M20.001 19A2 2 0 0022 17V5a2 2 0 00-1.999-2L16 3.002A5 5 0 0012 5a5 5 0 00-4-2H4a2 2 0 00-2 2v12a2 2 0 001.999 2H8a5 5 0 014 2 5 5 0 014-2z"></path></svg><span class="ui-sidebar__label">Документация</span></button></li></ul></nav></div>
<footer class="ui-sidebar__footer"><div class="ui-dropdown" data-ui-dropdown data-side="top" data-align="start"><button class="ui-sidebar__menu-button" data-size="lg" type="button" data-ui-dropdown-trigger aria-label="Меню профиля"><span class="doc-sidebar-avatar" aria-hidden="true">АС</span><span class="ui-sidebar__label">Анна Смирнова<small>anna@example.com</small></span><span class="ui-sidebar__chevron"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="ui-icon lucide lucide-chevrons-up-down" aria-hidden="true" focusable="false"><path d="m7 15 5 5 5-5"></path><path d="m7 9 5-5 5 5"></path></svg></span></button><div class="ui-dropdown__menu" data-ui-dropdown-menu hidden><button class="ui-dropdown__item" type="button" role="menuitem" data-doc-sidebar-page="Профиль"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="ui-icon lucide lucide-user" aria-hidden="true" focusable="false"><path d="M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2"></path><circle cx="12" cy="7" r="4"></circle></svg><span>Профиль</span></button><button class="ui-dropdown__item" type="button" role="menuitem" data-doc-sidebar-page="Настройки"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="ui-icon lucide lucide-settings" aria-hidden="true" focusable="false"><path d="M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915"></path><circle cx="12" cy="12" r="3"></circle></svg><span>Настройки</span></button></div></div></footer>
</div>
<button class="ui-sidebar__rail" type="button" data-ui-sidebar-rail tabindex="-1" aria-label="Переключить панель"></button>
</aside>
<div class="ui-sidebar__inset doc-sidebar-inset">
<div class="doc-sidebar-toolbar"><button class="ui-button ui-button--ghost ui-button--icon-sm" type="button" data-ui-sidebar-trigger aria-label="Переключить панель"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="ui-icon lucide lucide-panel-left" aria-hidden="true" focusable="false"><rect width="18" height="18" x="3" y="3" rx="2"></rect><path d="M9 3v18"></path></svg></button><span class="doc-sidebar-toolbar-divider" aria-hidden="true"></span><span data-doc-sidebar-breadcrumb>Рабочее пространство</span></div>
<div class="doc-sidebar-main" data-ui-scroll-area-target><div class="doc-sidebar-heading"><span>Обзор</span><h3 data-doc-sidebar-title>Главная</h3><p data-doc-sidebar-description>Ваши проекты, задачи и последние обновления.</p></div><div class="doc-sidebar-metrics"><article class="ui-card"><div class="ui-card__content"><span>Проекты</span><strong>12</strong><small>+2 за неделю</small></div></article><article class="ui-card"><div class="ui-card__content"><span>Задачи</span><strong>28</strong><small>8 завершено</small></div></article></div><div class="doc-sidebar-activity"><h4>Последняя активность</h4><p><span class="doc-sidebar-activity-dot"></span>Обновлена библиотека UIkit</p><p><span class="doc-sidebar-activity-dot"></span>Добавлены новые компоненты</p><p><span class="doc-sidebar-activity-dot"></span>Готовы макеты приложения</p></div></div>
</div>
</div>
<p class="ui-sr-only" role="status" data-doc-sidebar-status></p>
</div>Inset · Вложенная область
data-variant="inset" размещает основную область в отдельной поверхности. Оборачивайте её в .ui-sidebar__inset.
<div class="doc-sidebar-demo">
<div class="ui-sidebar-provider" data-ui-sidebar id="demo-sidebar-inset" data-collapsible="icon" data-variant="inset" data-side="left" style="--ui-sidebar-width:200px;--ui-sidebar-height:440px">
<aside class="ui-sidebar" data-ui-sidebar-panel aria-label="Навигация приложения">
<div class="ui-sidebar__inner">
<header class="ui-sidebar__header">
<div class="ui-dropdown" data-ui-dropdown data-align="start">
<button class="ui-sidebar__menu-button" data-size="lg" type="button" data-ui-dropdown-trigger aria-label="Рабочее пространство"><span class="ui-sidebar__brand"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="ui-icon lucide lucide-layers" aria-hidden="true" focusable="false"><path d="M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z"></path><path d="M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12"></path><path d="M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17"></path></svg></span><span class="ui-sidebar__label" data-doc-sidebar-workspace>Acme Inc</span><span class="ui-sidebar__chevron"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="ui-icon lucide lucide-chevrons-up-down" aria-hidden="true" focusable="false"><path d="m7 15 5 5 5-5"></path><path d="m7 9 5-5 5 5"></path></svg></span></button>
<div class="ui-dropdown__menu" data-ui-dropdown-menu hidden><div class="ui-dropdown__label">Рабочие пространства</div><button class="ui-dropdown__item" type="button" role="menuitem" data-doc-sidebar-switch="Acme Inc"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="ui-icon lucide lucide-layers" aria-hidden="true" focusable="false"><path d="M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z"></path><path d="M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12"></path><path d="M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17"></path></svg><span>Acme Inc</span></button><button class="ui-dropdown__item" type="button" role="menuitem" data-doc-sidebar-switch="Личное"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="ui-icon lucide lucide-layers" aria-hidden="true" focusable="false"><path d="M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z"></path><path d="M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12"></path><path d="M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17"></path></svg><span>Личное</span></button></div>
</div>
<label class="ui-sr-only" for="demo-sidebar-inset-search">Поиск по меню</label><input class="ui-input ui-sidebar__input" type="search" id="demo-sidebar-inset-search" placeholder="Поиск…" data-doc-sidebar-search>
</header>
<div class="ui-sidebar__content" data-ui-scroll-area-target tabindex="0" aria-label="Пункты навигации"><nav class="ui-sidebar__group" aria-label="Рабочее пространство">
<div class="ui-sidebar__group-label"><span>Рабочее пространство</span></div>
<ul class="ui-sidebar__menu" data-doc-sidebar-navigation>
<li class="ui-sidebar__menu-item"><button class="ui-sidebar__menu-button" type="button" data-doc-sidebar-page="Главная" aria-current="page"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="ui-icon lucide lucide-house" aria-hidden="true" focusable="false"><path d="M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8"></path><path d="M3 10a2 2 0 0 1 .709-1.528l7-6a2 2 0 0 1 2.582 0l7 6A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z"></path></svg><span class="ui-sidebar__label">Главная</span></button></li>
<li class="ui-sidebar__menu-item"><button class="ui-sidebar__menu-button" type="button" data-doc-sidebar-page="Входящие"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="ui-icon lucide lucide-inbox" aria-hidden="true" focusable="false"><polyline points="22 12 16 12 14 15 10 15 8 12 2 12"></polyline><path d="M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z"></path></svg><span class="ui-sidebar__label">Входящие</span><span class="ui-sidebar__menu-badge">5</span></button></li>
<li class="ui-sidebar__menu-item"><details class="ui-sidebar__collapsible" open><summary class="ui-sidebar__menu-button"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="ui-icon lucide lucide-folder" aria-hidden="true" focusable="false"><path d="M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z"></path></svg><span class="ui-sidebar__label">Проекты</span><span class="ui-sidebar__chevron" aria-hidden="true"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="ui-icon lucide lucide-chevron-right" aria-hidden="true" focusable="false"><path d="m9 18 6-6-6-6"></path></svg></span></summary><ul class="ui-sidebar__menu-sub"><li><button class="ui-sidebar__menu-sub-button" type="button" data-doc-sidebar-page="UIkit"><span class="ui-sidebar__label">UIkit</span></button></li><li><button class="ui-sidebar__menu-sub-button" type="button" data-doc-sidebar-page="Сайт"><span class="ui-sidebar__label">Сайт</span></button></li></ul></details></li>
<li class="ui-sidebar__menu-item"><button class="ui-sidebar__menu-button" type="button" data-doc-sidebar-page="Календарь"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="ui-icon lucide lucide-calendar" aria-hidden="true" focusable="false"><path d="M8 2v3"></path><path d="M16 2v3"></path><rect x="3" y="3" width="18" height="18" rx="2"></rect><path d="M3 9h18"></path></svg><span class="ui-sidebar__label">Календарь</span></button></li>
<li class="ui-sidebar__menu-item"><button class="ui-sidebar__menu-button" type="button" data-doc-sidebar-page="Архив · скоро" disabled><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="ui-icon lucide lucide-archive" aria-hidden="true" focusable="false"><rect width="20" height="5" x="2" y="3" rx="1"></rect><path d="M4 8v11a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8"></path><path d="M10 12h4"></path></svg><span class="ui-sidebar__label">Архив · скоро</span></button></li>
</ul>
</nav>
<div class="ui-sidebar__separator" role="separator"></div>
<nav class="ui-sidebar__group" aria-label="Проекты"><div class="ui-sidebar__group-label"><span>Избранное</span><button class="ui-sidebar__menu-action" type="button" data-doc-sidebar-add aria-label="Добавить проект"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="ui-icon lucide lucide-plus" aria-hidden="true" focusable="false"><path d="M5 12h14"></path><path d="M12 5v14"></path></svg></button></div><ul class="ui-sidebar__menu" data-doc-sidebar-projects><li class="ui-sidebar__menu-item"><button class="ui-sidebar__menu-button" type="button" data-doc-sidebar-page="Дизайн-система"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="ui-icon lucide lucide-shapes" aria-hidden="true" focusable="false"><path d="M8.3 10a.7.7 0 0 1-.626-1.079L11.4 3a.7.7 0 0 1 1.198-.043L16.3 8.9a.7.7 0 0 1-.572 1.1Z"></path><rect x="3" y="14" width="7" height="7" rx="1"></rect><circle cx="17.5" cy="17.5" r="3.5"></circle></svg><span class="ui-sidebar__label">Дизайн-система</span></button><button class="ui-sidebar__menu-action" type="button" data-doc-sidebar-notice="Проект добавлен в избранное." aria-label="В избранное" data-show-on-hover="true"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="ui-icon lucide lucide-star" aria-hidden="true" focusable="false"><path d="M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z"></path></svg></button></li><li class="ui-sidebar__menu-item"><button class="ui-sidebar__menu-button" type="button" data-doc-sidebar-page="Документация"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="ui-icon lucide lucide-book-open" aria-hidden="true" focusable="false"><path d="M12 5v16"></path><path d="M20.001 19A2 2 0 0022 17V5a2 2 0 00-1.999-2L16 3.002A5 5 0 0012 5a5 5 0 00-4-2H4a2 2 0 00-2 2v12a2 2 0 001.999 2H8a5 5 0 014 2 5 5 0 014-2z"></path></svg><span class="ui-sidebar__label">Документация</span></button></li></ul></nav></div>
<footer class="ui-sidebar__footer"><div class="ui-dropdown" data-ui-dropdown data-side="top" data-align="start"><button class="ui-sidebar__menu-button" data-size="lg" type="button" data-ui-dropdown-trigger aria-label="Меню профиля"><span class="doc-sidebar-avatar" aria-hidden="true">АС</span><span class="ui-sidebar__label">Анна Смирнова<small>anna@example.com</small></span><span class="ui-sidebar__chevron"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="ui-icon lucide lucide-chevrons-up-down" aria-hidden="true" focusable="false"><path d="m7 15 5 5 5-5"></path><path d="m7 9 5-5 5 5"></path></svg></span></button><div class="ui-dropdown__menu" data-ui-dropdown-menu hidden><button class="ui-dropdown__item" type="button" role="menuitem" data-doc-sidebar-page="Профиль"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="ui-icon lucide lucide-user" aria-hidden="true" focusable="false"><path d="M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2"></path><circle cx="12" cy="7" r="4"></circle></svg><span>Профиль</span></button><button class="ui-dropdown__item" type="button" role="menuitem" data-doc-sidebar-page="Настройки"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="ui-icon lucide lucide-settings" aria-hidden="true" focusable="false"><path d="M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915"></path><circle cx="12" cy="12" r="3"></circle></svg><span>Настройки</span></button></div></div></footer>
</div>
<button class="ui-sidebar__rail" type="button" data-ui-sidebar-rail tabindex="-1" aria-label="Переключить панель"></button>
</aside>
<div class="ui-sidebar__inset doc-sidebar-inset">
<div class="doc-sidebar-toolbar"><button class="ui-button ui-button--ghost ui-button--icon-sm" type="button" data-ui-sidebar-trigger aria-label="Переключить панель"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="ui-icon lucide lucide-panel-left" aria-hidden="true" focusable="false"><rect width="18" height="18" x="3" y="3" rx="2"></rect><path d="M9 3v18"></path></svg></button><span class="doc-sidebar-toolbar-divider" aria-hidden="true"></span><span data-doc-sidebar-breadcrumb>Рабочее пространство</span></div>
<div class="doc-sidebar-main" data-ui-scroll-area-target><div class="doc-sidebar-heading"><span>Обзор</span><h3 data-doc-sidebar-title>Главная</h3><p data-doc-sidebar-description>Ваши проекты, задачи и последние обновления.</p></div><div class="doc-sidebar-metrics"><article class="ui-card"><div class="ui-card__content"><span>Проекты</span><strong>12</strong><small>+2 за неделю</small></div></article><article class="ui-card"><div class="ui-card__content"><span>Задачи</span><strong>28</strong><small>8 завершено</small></div></article></div><div class="doc-sidebar-activity"><h4>Последняя активность</h4><p><span class="doc-sidebar-activity-dot"></span>Обновлена библиотека UIkit</p><p><span class="doc-sidebar-activity-dot"></span>Добавлены новые компоненты</p><p><span class="doc-sidebar-activity-dot"></span>Готовы макеты приложения</p></div></div>
</div>
</div>
<p class="ui-sr-only" role="status" data-doc-sidebar-status></p>
</div>Side · Правая панель
data-side="right" размещает панель справа, в том числе на мобильном экране. left и right задают физическую сторону независимо от RTL.
<div class="doc-sidebar-demo">
<div class="ui-sidebar-provider" data-ui-sidebar id="demo-sidebar-right" data-collapsible="icon" data-variant="sidebar" data-side="right" style="--ui-sidebar-width:200px;--ui-sidebar-height:440px">
<aside class="ui-sidebar" data-ui-sidebar-panel aria-label="Навигация приложения">
<div class="ui-sidebar__inner">
<header class="ui-sidebar__header">
<div class="ui-dropdown" data-ui-dropdown data-align="start">
<button class="ui-sidebar__menu-button" data-size="lg" type="button" data-ui-dropdown-trigger aria-label="Рабочее пространство"><span class="ui-sidebar__brand"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="ui-icon lucide lucide-layers" aria-hidden="true" focusable="false"><path d="M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z"></path><path d="M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12"></path><path d="M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17"></path></svg></span><span class="ui-sidebar__label" data-doc-sidebar-workspace>Acme Inc</span><span class="ui-sidebar__chevron"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="ui-icon lucide lucide-chevrons-up-down" aria-hidden="true" focusable="false"><path d="m7 15 5 5 5-5"></path><path d="m7 9 5-5 5 5"></path></svg></span></button>
<div class="ui-dropdown__menu" data-ui-dropdown-menu hidden><div class="ui-dropdown__label">Рабочие пространства</div><button class="ui-dropdown__item" type="button" role="menuitem" data-doc-sidebar-switch="Acme Inc"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="ui-icon lucide lucide-layers" aria-hidden="true" focusable="false"><path d="M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z"></path><path d="M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12"></path><path d="M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17"></path></svg><span>Acme Inc</span></button><button class="ui-dropdown__item" type="button" role="menuitem" data-doc-sidebar-switch="Личное"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="ui-icon lucide lucide-layers" aria-hidden="true" focusable="false"><path d="M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z"></path><path d="M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12"></path><path d="M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17"></path></svg><span>Личное</span></button></div>
</div>
<label class="ui-sr-only" for="demo-sidebar-right-search">Поиск по меню</label><input class="ui-input ui-sidebar__input" type="search" id="demo-sidebar-right-search" placeholder="Поиск…" data-doc-sidebar-search>
</header>
<div class="ui-sidebar__content" data-ui-scroll-area-target tabindex="0" aria-label="Пункты навигации"><nav class="ui-sidebar__group" aria-label="Рабочее пространство">
<div class="ui-sidebar__group-label"><span>Рабочее пространство</span></div>
<ul class="ui-sidebar__menu" data-doc-sidebar-navigation>
<li class="ui-sidebar__menu-item"><button class="ui-sidebar__menu-button" type="button" data-doc-sidebar-page="Главная" aria-current="page"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="ui-icon lucide lucide-house" aria-hidden="true" focusable="false"><path d="M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8"></path><path d="M3 10a2 2 0 0 1 .709-1.528l7-6a2 2 0 0 1 2.582 0l7 6A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z"></path></svg><span class="ui-sidebar__label">Главная</span></button></li>
<li class="ui-sidebar__menu-item"><button class="ui-sidebar__menu-button" type="button" data-doc-sidebar-page="Входящие"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="ui-icon lucide lucide-inbox" aria-hidden="true" focusable="false"><polyline points="22 12 16 12 14 15 10 15 8 12 2 12"></polyline><path d="M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z"></path></svg><span class="ui-sidebar__label">Входящие</span><span class="ui-sidebar__menu-badge">5</span></button></li>
<li class="ui-sidebar__menu-item"><details class="ui-sidebar__collapsible" open><summary class="ui-sidebar__menu-button"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="ui-icon lucide lucide-folder" aria-hidden="true" focusable="false"><path d="M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z"></path></svg><span class="ui-sidebar__label">Проекты</span><span class="ui-sidebar__chevron" aria-hidden="true"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="ui-icon lucide lucide-chevron-right" aria-hidden="true" focusable="false"><path d="m9 18 6-6-6-6"></path></svg></span></summary><ul class="ui-sidebar__menu-sub"><li><button class="ui-sidebar__menu-sub-button" type="button" data-doc-sidebar-page="UIkit"><span class="ui-sidebar__label">UIkit</span></button></li><li><button class="ui-sidebar__menu-sub-button" type="button" data-doc-sidebar-page="Сайт"><span class="ui-sidebar__label">Сайт</span></button></li></ul></details></li>
<li class="ui-sidebar__menu-item"><button class="ui-sidebar__menu-button" type="button" data-doc-sidebar-page="Календарь"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="ui-icon lucide lucide-calendar" aria-hidden="true" focusable="false"><path d="M8 2v3"></path><path d="M16 2v3"></path><rect x="3" y="3" width="18" height="18" rx="2"></rect><path d="M3 9h18"></path></svg><span class="ui-sidebar__label">Календарь</span></button></li>
<li class="ui-sidebar__menu-item"><button class="ui-sidebar__menu-button" type="button" data-doc-sidebar-page="Архив · скоро" disabled><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="ui-icon lucide lucide-archive" aria-hidden="true" focusable="false"><rect width="20" height="5" x="2" y="3" rx="1"></rect><path d="M4 8v11a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8"></path><path d="M10 12h4"></path></svg><span class="ui-sidebar__label">Архив · скоро</span></button></li>
</ul>
</nav>
<div class="ui-sidebar__separator" role="separator"></div>
<nav class="ui-sidebar__group" aria-label="Проекты"><div class="ui-sidebar__group-label"><span>Избранное</span><button class="ui-sidebar__menu-action" type="button" data-doc-sidebar-add aria-label="Добавить проект"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="ui-icon lucide lucide-plus" aria-hidden="true" focusable="false"><path d="M5 12h14"></path><path d="M12 5v14"></path></svg></button></div><ul class="ui-sidebar__menu" data-doc-sidebar-projects><li class="ui-sidebar__menu-item"><button class="ui-sidebar__menu-button" type="button" data-doc-sidebar-page="Дизайн-система"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="ui-icon lucide lucide-shapes" aria-hidden="true" focusable="false"><path d="M8.3 10a.7.7 0 0 1-.626-1.079L11.4 3a.7.7 0 0 1 1.198-.043L16.3 8.9a.7.7 0 0 1-.572 1.1Z"></path><rect x="3" y="14" width="7" height="7" rx="1"></rect><circle cx="17.5" cy="17.5" r="3.5"></circle></svg><span class="ui-sidebar__label">Дизайн-система</span></button><button class="ui-sidebar__menu-action" type="button" data-doc-sidebar-notice="Проект добавлен в избранное." aria-label="В избранное" data-show-on-hover="true"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="ui-icon lucide lucide-star" aria-hidden="true" focusable="false"><path d="M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z"></path></svg></button></li><li class="ui-sidebar__menu-item"><button class="ui-sidebar__menu-button" type="button" data-doc-sidebar-page="Документация"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="ui-icon lucide lucide-book-open" aria-hidden="true" focusable="false"><path d="M12 5v16"></path><path d="M20.001 19A2 2 0 0022 17V5a2 2 0 00-1.999-2L16 3.002A5 5 0 0012 5a5 5 0 00-4-2H4a2 2 0 00-2 2v12a2 2 0 001.999 2H8a5 5 0 014 2 5 5 0 014-2z"></path></svg><span class="ui-sidebar__label">Документация</span></button></li></ul></nav></div>
<footer class="ui-sidebar__footer"><div class="ui-dropdown" data-ui-dropdown data-side="top" data-align="start"><button class="ui-sidebar__menu-button" data-size="lg" type="button" data-ui-dropdown-trigger aria-label="Меню профиля"><span class="doc-sidebar-avatar" aria-hidden="true">АС</span><span class="ui-sidebar__label">Анна Смирнова<small>anna@example.com</small></span><span class="ui-sidebar__chevron"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="ui-icon lucide lucide-chevrons-up-down" aria-hidden="true" focusable="false"><path d="m7 15 5 5 5-5"></path><path d="m7 9 5-5 5 5"></path></svg></span></button><div class="ui-dropdown__menu" data-ui-dropdown-menu hidden><button class="ui-dropdown__item" type="button" role="menuitem" data-doc-sidebar-page="Профиль"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="ui-icon lucide lucide-user" aria-hidden="true" focusable="false"><path d="M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2"></path><circle cx="12" cy="7" r="4"></circle></svg><span>Профиль</span></button><button class="ui-dropdown__item" type="button" role="menuitem" data-doc-sidebar-page="Настройки"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="ui-icon lucide lucide-settings" aria-hidden="true" focusable="false"><path d="M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915"></path><circle cx="12" cy="12" r="3"></circle></svg><span>Настройки</span></button></div></div></footer>
</div>
<button class="ui-sidebar__rail" type="button" data-ui-sidebar-rail tabindex="-1" aria-label="Переключить панель"></button>
</aside>
<div class="ui-sidebar__inset doc-sidebar-inset">
<div class="doc-sidebar-toolbar"><button class="ui-button ui-button--ghost ui-button--icon-sm" type="button" data-ui-sidebar-trigger aria-label="Переключить панель"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="ui-icon lucide lucide-panel-left" aria-hidden="true" focusable="false"><rect width="18" height="18" x="3" y="3" rx="2"></rect><path d="M9 3v18"></path></svg></button><span class="doc-sidebar-toolbar-divider" aria-hidden="true"></span><span data-doc-sidebar-breadcrumb>Рабочее пространство</span></div>
<div class="doc-sidebar-main" data-ui-scroll-area-target><div class="doc-sidebar-heading"><span>Обзор</span><h3 data-doc-sidebar-title>Главная</h3><p data-doc-sidebar-description>Ваши проекты, задачи и последние обновления.</p></div><div class="doc-sidebar-metrics"><article class="ui-card"><div class="ui-card__content"><span>Проекты</span><strong>12</strong><small>+2 за неделю</small></div></article><article class="ui-card"><div class="ui-card__content"><span>Задачи</span><strong>28</strong><small>8 завершено</small></div></article></div><div class="doc-sidebar-activity"><h4>Последняя активность</h4><p><span class="doc-sidebar-activity-dot"></span>Обновлена библиотека UIkit</p><p><span class="doc-sidebar-activity-dot"></span>Добавлены новые компоненты</p><p><span class="doc-sidebar-activity-dot"></span>Готовы макеты приложения</p></div></div>
</div>
</div>
<p class="ui-sr-only" role="status" data-doc-sidebar-status></p>
</div>Mobile · Выдвижное меню
До 767px панель открывается как модальный dialog поверх страницы. Закрытие — кнопкой, Escape или нажатием на затемнение. Фокус возвращается к вызвавшей кнопке; состояние сворачивания десктопа сохраняется отдельно. В этом примере data-mobile="true" включает мобильный режим на любой ширине.
<div class="doc-sidebar-demo">
<div class="ui-sidebar-provider" data-ui-sidebar id="demo-sidebar-mobile" data-collapsible="icon" data-variant="sidebar" data-side="left" data-mobile="true" style="--ui-sidebar-width:200px;--ui-sidebar-height:440px">
<aside class="ui-sidebar" data-ui-sidebar-panel aria-label="Навигация приложения">
<div class="ui-sidebar__inner">
<header class="ui-sidebar__header">
<div class="ui-dropdown" data-ui-dropdown data-align="start">
<button class="ui-sidebar__menu-button" data-size="lg" type="button" data-ui-dropdown-trigger aria-label="Рабочее пространство"><span class="ui-sidebar__brand"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="ui-icon lucide lucide-layers" aria-hidden="true" focusable="false"><path d="M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z"></path><path d="M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12"></path><path d="M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17"></path></svg></span><span class="ui-sidebar__label" data-doc-sidebar-workspace>Acme Inc</span><span class="ui-sidebar__chevron"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="ui-icon lucide lucide-chevrons-up-down" aria-hidden="true" focusable="false"><path d="m7 15 5 5 5-5"></path><path d="m7 9 5-5 5 5"></path></svg></span></button>
<div class="ui-dropdown__menu" data-ui-dropdown-menu hidden><div class="ui-dropdown__label">Рабочие пространства</div><button class="ui-dropdown__item" type="button" role="menuitem" data-doc-sidebar-switch="Acme Inc"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="ui-icon lucide lucide-layers" aria-hidden="true" focusable="false"><path d="M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z"></path><path d="M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12"></path><path d="M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17"></path></svg><span>Acme Inc</span></button><button class="ui-dropdown__item" type="button" role="menuitem" data-doc-sidebar-switch="Личное"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="ui-icon lucide lucide-layers" aria-hidden="true" focusable="false"><path d="M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z"></path><path d="M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12"></path><path d="M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17"></path></svg><span>Личное</span></button></div>
</div>
<label class="ui-sr-only" for="demo-sidebar-mobile-search">Поиск по меню</label><input class="ui-input ui-sidebar__input" type="search" id="demo-sidebar-mobile-search" placeholder="Поиск…" data-doc-sidebar-search>
</header>
<div class="ui-sidebar__content" data-ui-scroll-area-target tabindex="0" aria-label="Пункты навигации"><nav class="ui-sidebar__group" aria-label="Рабочее пространство">
<div class="ui-sidebar__group-label"><span>Рабочее пространство</span></div>
<ul class="ui-sidebar__menu" data-doc-sidebar-navigation>
<li class="ui-sidebar__menu-item"><button class="ui-sidebar__menu-button" type="button" data-doc-sidebar-page="Главная" aria-current="page"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="ui-icon lucide lucide-house" aria-hidden="true" focusable="false"><path d="M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8"></path><path d="M3 10a2 2 0 0 1 .709-1.528l7-6a2 2 0 0 1 2.582 0l7 6A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z"></path></svg><span class="ui-sidebar__label">Главная</span></button></li>
<li class="ui-sidebar__menu-item"><button class="ui-sidebar__menu-button" type="button" data-doc-sidebar-page="Входящие"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="ui-icon lucide lucide-inbox" aria-hidden="true" focusable="false"><polyline points="22 12 16 12 14 15 10 15 8 12 2 12"></polyline><path d="M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z"></path></svg><span class="ui-sidebar__label">Входящие</span><span class="ui-sidebar__menu-badge">5</span></button></li>
<li class="ui-sidebar__menu-item"><details class="ui-sidebar__collapsible" open><summary class="ui-sidebar__menu-button"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="ui-icon lucide lucide-folder" aria-hidden="true" focusable="false"><path d="M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z"></path></svg><span class="ui-sidebar__label">Проекты</span><span class="ui-sidebar__chevron" aria-hidden="true"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="ui-icon lucide lucide-chevron-right" aria-hidden="true" focusable="false"><path d="m9 18 6-6-6-6"></path></svg></span></summary><ul class="ui-sidebar__menu-sub"><li><button class="ui-sidebar__menu-sub-button" type="button" data-doc-sidebar-page="UIkit"><span class="ui-sidebar__label">UIkit</span></button></li><li><button class="ui-sidebar__menu-sub-button" type="button" data-doc-sidebar-page="Сайт"><span class="ui-sidebar__label">Сайт</span></button></li></ul></details></li>
<li class="ui-sidebar__menu-item"><button class="ui-sidebar__menu-button" type="button" data-doc-sidebar-page="Календарь"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="ui-icon lucide lucide-calendar" aria-hidden="true" focusable="false"><path d="M8 2v3"></path><path d="M16 2v3"></path><rect x="3" y="3" width="18" height="18" rx="2"></rect><path d="M3 9h18"></path></svg><span class="ui-sidebar__label">Календарь</span></button></li>
<li class="ui-sidebar__menu-item"><button class="ui-sidebar__menu-button" type="button" data-doc-sidebar-page="Архив · скоро" disabled><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="ui-icon lucide lucide-archive" aria-hidden="true" focusable="false"><rect width="20" height="5" x="2" y="3" rx="1"></rect><path d="M4 8v11a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8"></path><path d="M10 12h4"></path></svg><span class="ui-sidebar__label">Архив · скоро</span></button></li>
</ul>
</nav>
<div class="ui-sidebar__separator" role="separator"></div>
<nav class="ui-sidebar__group" aria-label="Проекты"><div class="ui-sidebar__group-label"><span>Избранное</span><button class="ui-sidebar__menu-action" type="button" data-doc-sidebar-add aria-label="Добавить проект"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="ui-icon lucide lucide-plus" aria-hidden="true" focusable="false"><path d="M5 12h14"></path><path d="M12 5v14"></path></svg></button></div><ul class="ui-sidebar__menu" data-doc-sidebar-projects><li class="ui-sidebar__menu-item"><button class="ui-sidebar__menu-button" type="button" data-doc-sidebar-page="Дизайн-система"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="ui-icon lucide lucide-shapes" aria-hidden="true" focusable="false"><path d="M8.3 10a.7.7 0 0 1-.626-1.079L11.4 3a.7.7 0 0 1 1.198-.043L16.3 8.9a.7.7 0 0 1-.572 1.1Z"></path><rect x="3" y="14" width="7" height="7" rx="1"></rect><circle cx="17.5" cy="17.5" r="3.5"></circle></svg><span class="ui-sidebar__label">Дизайн-система</span></button><button class="ui-sidebar__menu-action" type="button" data-doc-sidebar-notice="Проект добавлен в избранное." aria-label="В избранное" data-show-on-hover="true"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="ui-icon lucide lucide-star" aria-hidden="true" focusable="false"><path d="M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z"></path></svg></button></li><li class="ui-sidebar__menu-item"><button class="ui-sidebar__menu-button" type="button" data-doc-sidebar-page="Документация"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="ui-icon lucide lucide-book-open" aria-hidden="true" focusable="false"><path d="M12 5v16"></path><path d="M20.001 19A2 2 0 0022 17V5a2 2 0 00-1.999-2L16 3.002A5 5 0 0012 5a5 5 0 00-4-2H4a2 2 0 00-2 2v12a2 2 0 001.999 2H8a5 5 0 014 2 5 5 0 014-2z"></path></svg><span class="ui-sidebar__label">Документация</span></button></li></ul></nav></div>
<footer class="ui-sidebar__footer"><div class="ui-dropdown" data-ui-dropdown data-side="top" data-align="start"><button class="ui-sidebar__menu-button" data-size="lg" type="button" data-ui-dropdown-trigger aria-label="Меню профиля"><span class="doc-sidebar-avatar" aria-hidden="true">АС</span><span class="ui-sidebar__label">Анна Смирнова<small>anna@example.com</small></span><span class="ui-sidebar__chevron"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="ui-icon lucide lucide-chevrons-up-down" aria-hidden="true" focusable="false"><path d="m7 15 5 5 5-5"></path><path d="m7 9 5-5 5 5"></path></svg></span></button><div class="ui-dropdown__menu" data-ui-dropdown-menu hidden><button class="ui-dropdown__item" type="button" role="menuitem" data-doc-sidebar-page="Профиль"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="ui-icon lucide lucide-user" aria-hidden="true" focusable="false"><path d="M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2"></path><circle cx="12" cy="7" r="4"></circle></svg><span>Профиль</span></button><button class="ui-dropdown__item" type="button" role="menuitem" data-doc-sidebar-page="Настройки"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="ui-icon lucide lucide-settings" aria-hidden="true" focusable="false"><path d="M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915"></path><circle cx="12" cy="12" r="3"></circle></svg><span>Настройки</span></button></div></div></footer>
</div>
<button class="ui-sidebar__rail" type="button" data-ui-sidebar-rail tabindex="-1" aria-label="Переключить панель"></button>
</aside>
<div class="ui-sidebar__inset doc-sidebar-inset">
<div class="doc-sidebar-toolbar"><button class="ui-button ui-button--ghost ui-button--icon-sm" type="button" data-ui-sidebar-trigger aria-label="Переключить панель"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="ui-icon lucide lucide-panel-left" aria-hidden="true" focusable="false"><rect width="18" height="18" x="3" y="3" rx="2"></rect><path d="M9 3v18"></path></svg></button><span class="doc-sidebar-toolbar-divider" aria-hidden="true"></span><span data-doc-sidebar-breadcrumb>Рабочее пространство</span></div>
<div class="doc-sidebar-main" data-ui-scroll-area-target><div class="doc-sidebar-heading"><span>Обзор</span><h3 data-doc-sidebar-title>Главная</h3><p data-doc-sidebar-description>Ваши проекты, задачи и последние обновления.</p></div><div class="doc-sidebar-metrics"><article class="ui-card"><div class="ui-card__content"><span>Проекты</span><strong>12</strong><small>+2 за неделю</small></div></article><article class="ui-card"><div class="ui-card__content"><span>Задачи</span><strong>28</strong><small>8 завершено</small></div></article></div><div class="doc-sidebar-activity"><h4>Последняя активность</h4><p><span class="doc-sidebar-activity-dot"></span>Обновлена библиотека UIkit</p><p><span class="doc-sidebar-activity-dot"></span>Добавлены новые компоненты</p><p><span class="doc-sidebar-activity-dot"></span>Готовы макеты приложения</p></div></div>
</div>
</div>
<p class="ui-sr-only" role="status" data-doc-sidebar-status></p>
</div>Controlled · Управление состоянием
Методы open, close, toggle и setOpen управляют текущим режимом. state возвращает отдельные состояния десктопа и мобильного меню. Событие beforechange можно отменить через preventDefault.
<div class="doc-sidebar-demo">
<div class="ui-sidebar-provider" data-ui-sidebar id="demo-sidebar-controlled" data-collapsible="icon" data-variant="sidebar" data-side="left" data-default-open="false" style="--ui-sidebar-width:200px;--ui-sidebar-height:440px">
<aside class="ui-sidebar" data-ui-sidebar-panel aria-label="Навигация приложения">
<div class="ui-sidebar__inner">
<header class="ui-sidebar__header">
<div class="ui-dropdown" data-ui-dropdown data-align="start">
<button class="ui-sidebar__menu-button" data-size="lg" type="button" data-ui-dropdown-trigger aria-label="Рабочее пространство"><span class="ui-sidebar__brand"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="ui-icon lucide lucide-layers" aria-hidden="true" focusable="false"><path d="M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z"></path><path d="M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12"></path><path d="M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17"></path></svg></span><span class="ui-sidebar__label" data-doc-sidebar-workspace>Acme Inc</span><span class="ui-sidebar__chevron"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="ui-icon lucide lucide-chevrons-up-down" aria-hidden="true" focusable="false"><path d="m7 15 5 5 5-5"></path><path d="m7 9 5-5 5 5"></path></svg></span></button>
<div class="ui-dropdown__menu" data-ui-dropdown-menu hidden><div class="ui-dropdown__label">Рабочие пространства</div><button class="ui-dropdown__item" type="button" role="menuitem" data-doc-sidebar-switch="Acme Inc"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="ui-icon lucide lucide-layers" aria-hidden="true" focusable="false"><path d="M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z"></path><path d="M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12"></path><path d="M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17"></path></svg><span>Acme Inc</span></button><button class="ui-dropdown__item" type="button" role="menuitem" data-doc-sidebar-switch="Личное"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="ui-icon lucide lucide-layers" aria-hidden="true" focusable="false"><path d="M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z"></path><path d="M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12"></path><path d="M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17"></path></svg><span>Личное</span></button></div>
</div>
<label class="ui-sr-only" for="demo-sidebar-controlled-search">Поиск по меню</label><input class="ui-input ui-sidebar__input" type="search" id="demo-sidebar-controlled-search" placeholder="Поиск…" data-doc-sidebar-search>
</header>
<div class="ui-sidebar__content" data-ui-scroll-area-target tabindex="0" aria-label="Пункты навигации"><nav class="ui-sidebar__group" aria-label="Рабочее пространство">
<div class="ui-sidebar__group-label"><span>Рабочее пространство</span></div>
<ul class="ui-sidebar__menu" data-doc-sidebar-navigation>
<li class="ui-sidebar__menu-item"><button class="ui-sidebar__menu-button" type="button" data-doc-sidebar-page="Главная" aria-current="page"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="ui-icon lucide lucide-house" aria-hidden="true" focusable="false"><path d="M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8"></path><path d="M3 10a2 2 0 0 1 .709-1.528l7-6a2 2 0 0 1 2.582 0l7 6A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z"></path></svg><span class="ui-sidebar__label">Главная</span></button></li>
<li class="ui-sidebar__menu-item"><button class="ui-sidebar__menu-button" type="button" data-doc-sidebar-page="Входящие"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="ui-icon lucide lucide-inbox" aria-hidden="true" focusable="false"><polyline points="22 12 16 12 14 15 10 15 8 12 2 12"></polyline><path d="M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z"></path></svg><span class="ui-sidebar__label">Входящие</span><span class="ui-sidebar__menu-badge">5</span></button></li>
<li class="ui-sidebar__menu-item"><details class="ui-sidebar__collapsible" open><summary class="ui-sidebar__menu-button"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="ui-icon lucide lucide-folder" aria-hidden="true" focusable="false"><path d="M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z"></path></svg><span class="ui-sidebar__label">Проекты</span><span class="ui-sidebar__chevron" aria-hidden="true"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="ui-icon lucide lucide-chevron-right" aria-hidden="true" focusable="false"><path d="m9 18 6-6-6-6"></path></svg></span></summary><ul class="ui-sidebar__menu-sub"><li><button class="ui-sidebar__menu-sub-button" type="button" data-doc-sidebar-page="UIkit"><span class="ui-sidebar__label">UIkit</span></button></li><li><button class="ui-sidebar__menu-sub-button" type="button" data-doc-sidebar-page="Сайт"><span class="ui-sidebar__label">Сайт</span></button></li></ul></details></li>
<li class="ui-sidebar__menu-item"><button class="ui-sidebar__menu-button" type="button" data-doc-sidebar-page="Календарь"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="ui-icon lucide lucide-calendar" aria-hidden="true" focusable="false"><path d="M8 2v3"></path><path d="M16 2v3"></path><rect x="3" y="3" width="18" height="18" rx="2"></rect><path d="M3 9h18"></path></svg><span class="ui-sidebar__label">Календарь</span></button></li>
<li class="ui-sidebar__menu-item"><button class="ui-sidebar__menu-button" type="button" data-doc-sidebar-page="Архив · скоро" disabled><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="ui-icon lucide lucide-archive" aria-hidden="true" focusable="false"><rect width="20" height="5" x="2" y="3" rx="1"></rect><path d="M4 8v11a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8"></path><path d="M10 12h4"></path></svg><span class="ui-sidebar__label">Архив · скоро</span></button></li>
</ul>
</nav>
<div class="ui-sidebar__separator" role="separator"></div>
<nav class="ui-sidebar__group" aria-label="Проекты"><div class="ui-sidebar__group-label"><span>Избранное</span><button class="ui-sidebar__menu-action" type="button" data-doc-sidebar-add aria-label="Добавить проект"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="ui-icon lucide lucide-plus" aria-hidden="true" focusable="false"><path d="M5 12h14"></path><path d="M12 5v14"></path></svg></button></div><ul class="ui-sidebar__menu" data-doc-sidebar-projects><li class="ui-sidebar__menu-item"><button class="ui-sidebar__menu-button" type="button" data-doc-sidebar-page="Дизайн-система"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="ui-icon lucide lucide-shapes" aria-hidden="true" focusable="false"><path d="M8.3 10a.7.7 0 0 1-.626-1.079L11.4 3a.7.7 0 0 1 1.198-.043L16.3 8.9a.7.7 0 0 1-.572 1.1Z"></path><rect x="3" y="14" width="7" height="7" rx="1"></rect><circle cx="17.5" cy="17.5" r="3.5"></circle></svg><span class="ui-sidebar__label">Дизайн-система</span></button><button class="ui-sidebar__menu-action" type="button" data-doc-sidebar-notice="Проект добавлен в избранное." aria-label="В избранное" data-show-on-hover="true"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="ui-icon lucide lucide-star" aria-hidden="true" focusable="false"><path d="M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z"></path></svg></button></li><li class="ui-sidebar__menu-item"><button class="ui-sidebar__menu-button" type="button" data-doc-sidebar-page="Документация"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="ui-icon lucide lucide-book-open" aria-hidden="true" focusable="false"><path d="M12 5v16"></path><path d="M20.001 19A2 2 0 0022 17V5a2 2 0 00-1.999-2L16 3.002A5 5 0 0012 5a5 5 0 00-4-2H4a2 2 0 00-2 2v12a2 2 0 001.999 2H8a5 5 0 014 2 5 5 0 014-2z"></path></svg><span class="ui-sidebar__label">Документация</span></button></li></ul></nav></div>
<footer class="ui-sidebar__footer"><div class="ui-dropdown" data-ui-dropdown data-side="top" data-align="start"><button class="ui-sidebar__menu-button" data-size="lg" type="button" data-ui-dropdown-trigger aria-label="Меню профиля"><span class="doc-sidebar-avatar" aria-hidden="true">АС</span><span class="ui-sidebar__label">Анна Смирнова<small>anna@example.com</small></span><span class="ui-sidebar__chevron"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="ui-icon lucide lucide-chevrons-up-down" aria-hidden="true" focusable="false"><path d="m7 15 5 5 5-5"></path><path d="m7 9 5-5 5 5"></path></svg></span></button><div class="ui-dropdown__menu" data-ui-dropdown-menu hidden><button class="ui-dropdown__item" type="button" role="menuitem" data-doc-sidebar-page="Профиль"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="ui-icon lucide lucide-user" aria-hidden="true" focusable="false"><path d="M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2"></path><circle cx="12" cy="7" r="4"></circle></svg><span>Профиль</span></button><button class="ui-dropdown__item" type="button" role="menuitem" data-doc-sidebar-page="Настройки"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="ui-icon lucide lucide-settings" aria-hidden="true" focusable="false"><path d="M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915"></path><circle cx="12" cy="12" r="3"></circle></svg><span>Настройки</span></button></div></div></footer>
</div>
<button class="ui-sidebar__rail" type="button" data-ui-sidebar-rail tabindex="-1" aria-label="Переключить панель"></button>
</aside>
<div class="ui-sidebar__inset doc-sidebar-inset">
<div class="doc-sidebar-toolbar"><button class="ui-button ui-button--ghost ui-button--icon-sm" type="button" data-ui-sidebar-trigger aria-label="Переключить панель"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="ui-icon lucide lucide-panel-left" aria-hidden="true" focusable="false"><rect width="18" height="18" x="3" y="3" rx="2"></rect><path d="M9 3v18"></path></svg></button><span class="doc-sidebar-toolbar-divider" aria-hidden="true"></span><span data-doc-sidebar-breadcrumb>Рабочее пространство</span></div>
<div class="doc-sidebar-main" data-ui-scroll-area-target><div class="doc-sidebar-heading"><span>Обзор</span><h3 data-doc-sidebar-title>Главная</h3><p data-doc-sidebar-description>Ваши проекты, задачи и последние обновления.</p></div><div class="doc-sidebar-metrics"><article class="ui-card"><div class="ui-card__content"><span>Проекты</span><strong>12</strong><small>+2 за неделю</small></div></article><article class="ui-card"><div class="ui-card__content"><span>Задачи</span><strong>28</strong><small>8 завершено</small></div></article></div><div class="doc-sidebar-activity"><h4>Последняя активность</h4><p><span class="doc-sidebar-activity-dot"></span>Обновлена библиотека UIkit</p><p><span class="doc-sidebar-activity-dot"></span>Добавлены новые компоненты</p><p><span class="doc-sidebar-activity-dot"></span>Готовы макеты приложения</p></div></div>
</div>
</div>
<div class="doc-sidebar-commands"><button class="ui-button ui-button--outline ui-button--sm" type="button" data-doc-sidebar-command="open">Открыть</button><button class="ui-button ui-button--outline ui-button--sm" type="button" data-doc-sidebar-command="close">Закрыть</button><output data-doc-sidebar-state>Панель закрыта</output></div>
<p class="ui-sr-only" role="status" data-doc-sidebar-status></p>
</div>const $sidebar = $('#demo-sidebar-controlled');
$sidebar.uiSidebar('setOpen', true);
$sidebar.on('ui:sidebar:change', function (event, detail) {
console.log(detail.open, detail.openMobile, detail.isMobile);
});
// Необязательное сохранение: data-storage-key="app-sidebar"Width · Размеры и цвета
Настраивайте переменные на Provider. Размеры и палитра наследуются мобильным диалогом. Цвет активной страницы связан с основным синим #1E66FF.
<div class="doc-sidebar-demo">
<div class="ui-sidebar-provider" data-ui-sidebar id="demo-sidebar-width" data-collapsible="icon" data-variant="sidebar" data-side="left" style="--ui-sidebar-width:240px;--ui-sidebar-height:440px">
<aside class="ui-sidebar" data-ui-sidebar-panel aria-label="Навигация приложения">
<div class="ui-sidebar__inner">
<header class="ui-sidebar__header">
<div class="ui-dropdown" data-ui-dropdown data-align="start">
<button class="ui-sidebar__menu-button" data-size="lg" type="button" data-ui-dropdown-trigger aria-label="Рабочее пространство"><span class="ui-sidebar__brand"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="ui-icon lucide lucide-layers" aria-hidden="true" focusable="false"><path d="M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z"></path><path d="M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12"></path><path d="M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17"></path></svg></span><span class="ui-sidebar__label" data-doc-sidebar-workspace>Acme Inc</span><span class="ui-sidebar__chevron"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="ui-icon lucide lucide-chevrons-up-down" aria-hidden="true" focusable="false"><path d="m7 15 5 5 5-5"></path><path d="m7 9 5-5 5 5"></path></svg></span></button>
<div class="ui-dropdown__menu" data-ui-dropdown-menu hidden><div class="ui-dropdown__label">Рабочие пространства</div><button class="ui-dropdown__item" type="button" role="menuitem" data-doc-sidebar-switch="Acme Inc"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="ui-icon lucide lucide-layers" aria-hidden="true" focusable="false"><path d="M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z"></path><path d="M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12"></path><path d="M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17"></path></svg><span>Acme Inc</span></button><button class="ui-dropdown__item" type="button" role="menuitem" data-doc-sidebar-switch="Личное"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="ui-icon lucide lucide-layers" aria-hidden="true" focusable="false"><path d="M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z"></path><path d="M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12"></path><path d="M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17"></path></svg><span>Личное</span></button></div>
</div>
<label class="ui-sr-only" for="demo-sidebar-width-search">Поиск по меню</label><input class="ui-input ui-sidebar__input" type="search" id="demo-sidebar-width-search" placeholder="Поиск…" data-doc-sidebar-search>
</header>
<div class="ui-sidebar__content" data-ui-scroll-area-target tabindex="0" aria-label="Пункты навигации"><nav class="ui-sidebar__group" aria-label="Рабочее пространство">
<div class="ui-sidebar__group-label"><span>Рабочее пространство</span></div>
<ul class="ui-sidebar__menu" data-doc-sidebar-navigation>
<li class="ui-sidebar__menu-item"><button class="ui-sidebar__menu-button" type="button" data-doc-sidebar-page="Главная" aria-current="page"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="ui-icon lucide lucide-house" aria-hidden="true" focusable="false"><path d="M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8"></path><path d="M3 10a2 2 0 0 1 .709-1.528l7-6a2 2 0 0 1 2.582 0l7 6A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z"></path></svg><span class="ui-sidebar__label">Главная</span></button></li>
<li class="ui-sidebar__menu-item"><button class="ui-sidebar__menu-button" type="button" data-doc-sidebar-page="Входящие"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="ui-icon lucide lucide-inbox" aria-hidden="true" focusable="false"><polyline points="22 12 16 12 14 15 10 15 8 12 2 12"></polyline><path d="M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z"></path></svg><span class="ui-sidebar__label">Входящие</span><span class="ui-sidebar__menu-badge">5</span></button></li>
<li class="ui-sidebar__menu-item"><details class="ui-sidebar__collapsible" open><summary class="ui-sidebar__menu-button"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="ui-icon lucide lucide-folder" aria-hidden="true" focusable="false"><path d="M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z"></path></svg><span class="ui-sidebar__label">Проекты</span><span class="ui-sidebar__chevron" aria-hidden="true"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="ui-icon lucide lucide-chevron-right" aria-hidden="true" focusable="false"><path d="m9 18 6-6-6-6"></path></svg></span></summary><ul class="ui-sidebar__menu-sub"><li><button class="ui-sidebar__menu-sub-button" type="button" data-doc-sidebar-page="UIkit"><span class="ui-sidebar__label">UIkit</span></button></li><li><button class="ui-sidebar__menu-sub-button" type="button" data-doc-sidebar-page="Сайт"><span class="ui-sidebar__label">Сайт</span></button></li></ul></details></li>
<li class="ui-sidebar__menu-item"><button class="ui-sidebar__menu-button" type="button" data-doc-sidebar-page="Календарь"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="ui-icon lucide lucide-calendar" aria-hidden="true" focusable="false"><path d="M8 2v3"></path><path d="M16 2v3"></path><rect x="3" y="3" width="18" height="18" rx="2"></rect><path d="M3 9h18"></path></svg><span class="ui-sidebar__label">Календарь</span></button></li>
<li class="ui-sidebar__menu-item"><button class="ui-sidebar__menu-button" type="button" data-doc-sidebar-page="Архив · скоро" disabled><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="ui-icon lucide lucide-archive" aria-hidden="true" focusable="false"><rect width="20" height="5" x="2" y="3" rx="1"></rect><path d="M4 8v11a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8"></path><path d="M10 12h4"></path></svg><span class="ui-sidebar__label">Архив · скоро</span></button></li>
</ul>
</nav>
<div class="ui-sidebar__separator" role="separator"></div>
<nav class="ui-sidebar__group" aria-label="Проекты"><div class="ui-sidebar__group-label"><span>Избранное</span><button class="ui-sidebar__menu-action" type="button" data-doc-sidebar-add aria-label="Добавить проект"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="ui-icon lucide lucide-plus" aria-hidden="true" focusable="false"><path d="M5 12h14"></path><path d="M12 5v14"></path></svg></button></div><ul class="ui-sidebar__menu" data-doc-sidebar-projects><li class="ui-sidebar__menu-item"><button class="ui-sidebar__menu-button" type="button" data-doc-sidebar-page="Дизайн-система"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="ui-icon lucide lucide-shapes" aria-hidden="true" focusable="false"><path d="M8.3 10a.7.7 0 0 1-.626-1.079L11.4 3a.7.7 0 0 1 1.198-.043L16.3 8.9a.7.7 0 0 1-.572 1.1Z"></path><rect x="3" y="14" width="7" height="7" rx="1"></rect><circle cx="17.5" cy="17.5" r="3.5"></circle></svg><span class="ui-sidebar__label">Дизайн-система</span></button><button class="ui-sidebar__menu-action" type="button" data-doc-sidebar-notice="Проект добавлен в избранное." aria-label="В избранное" data-show-on-hover="true"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="ui-icon lucide lucide-star" aria-hidden="true" focusable="false"><path d="M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z"></path></svg></button></li><li class="ui-sidebar__menu-item"><button class="ui-sidebar__menu-button" type="button" data-doc-sidebar-page="Документация"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="ui-icon lucide lucide-book-open" aria-hidden="true" focusable="false"><path d="M12 5v16"></path><path d="M20.001 19A2 2 0 0022 17V5a2 2 0 00-1.999-2L16 3.002A5 5 0 0012 5a5 5 0 00-4-2H4a2 2 0 00-2 2v12a2 2 0 001.999 2H8a5 5 0 014 2 5 5 0 014-2z"></path></svg><span class="ui-sidebar__label">Документация</span></button></li></ul></nav></div>
<footer class="ui-sidebar__footer"><div class="ui-dropdown" data-ui-dropdown data-side="top" data-align="start"><button class="ui-sidebar__menu-button" data-size="lg" type="button" data-ui-dropdown-trigger aria-label="Меню профиля"><span class="doc-sidebar-avatar" aria-hidden="true">АС</span><span class="ui-sidebar__label">Анна Смирнова<small>anna@example.com</small></span><span class="ui-sidebar__chevron"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="ui-icon lucide lucide-chevrons-up-down" aria-hidden="true" focusable="false"><path d="m7 15 5 5 5-5"></path><path d="m7 9 5-5 5 5"></path></svg></span></button><div class="ui-dropdown__menu" data-ui-dropdown-menu hidden><button class="ui-dropdown__item" type="button" role="menuitem" data-doc-sidebar-page="Профиль"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="ui-icon lucide lucide-user" aria-hidden="true" focusable="false"><path d="M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2"></path><circle cx="12" cy="7" r="4"></circle></svg><span>Профиль</span></button><button class="ui-dropdown__item" type="button" role="menuitem" data-doc-sidebar-page="Настройки"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="ui-icon lucide lucide-settings" aria-hidden="true" focusable="false"><path d="M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915"></path><circle cx="12" cy="12" r="3"></circle></svg><span>Настройки</span></button></div></div></footer>
</div>
<button class="ui-sidebar__rail" type="button" data-ui-sidebar-rail tabindex="-1" aria-label="Переключить панель"></button>
</aside>
<div class="ui-sidebar__inset doc-sidebar-inset">
<div class="doc-sidebar-toolbar"><button class="ui-button ui-button--ghost ui-button--icon-sm" type="button" data-ui-sidebar-trigger aria-label="Переключить панель"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="ui-icon lucide lucide-panel-left" aria-hidden="true" focusable="false"><rect width="18" height="18" x="3" y="3" rx="2"></rect><path d="M9 3v18"></path></svg></button><span class="doc-sidebar-toolbar-divider" aria-hidden="true"></span><span data-doc-sidebar-breadcrumb>Рабочее пространство</span></div>
<div class="doc-sidebar-main" data-ui-scroll-area-target><div class="doc-sidebar-heading"><span>Обзор</span><h3 data-doc-sidebar-title>Главная</h3><p data-doc-sidebar-description>Ваши проекты, задачи и последние обновления.</p></div><div class="doc-sidebar-metrics"><article class="ui-card"><div class="ui-card__content"><span>Проекты</span><strong>12</strong><small>+2 за неделю</small></div></article><article class="ui-card"><div class="ui-card__content"><span>Задачи</span><strong>28</strong><small>8 завершено</small></div></article></div><div class="doc-sidebar-activity"><h4>Последняя активность</h4><p><span class="doc-sidebar-activity-dot"></span>Обновлена библиотека UIkit</p><p><span class="doc-sidebar-activity-dot"></span>Добавлены новые компоненты</p><p><span class="doc-sidebar-activity-dot"></span>Готовы макеты приложения</p></div></div>
</div>
</div>
<p class="ui-sr-only" role="status" data-doc-sidebar-status></p>
</div>.ui-sidebar-provider {
--ui-sidebar-width: 256px;
--ui-sidebar-width-icon: 56px;
--ui-sidebar-width-mobile: 288px;
--ui-sidebar-height: 100svh;
--ui-sidebar-background: var(--ui-surface-muted);
--ui-sidebar-active: var(--ui-primary-soft);
--ui-sidebar-active-foreground: var(--ui-primary-text);
}Skeleton · Загрузка меню
.ui-sidebar__skeleton отображает заглушки пунктов во время загрузки данных. При prefers-reduced-motion анимация отключается.
<div class="doc-sidebar-demo">
<div class="ui-sidebar-provider" data-ui-sidebar id="demo-sidebar-skeleton" data-collapsible="icon" data-variant="sidebar" data-side="left" style="--ui-sidebar-width:200px;--ui-sidebar-height:440px">
<aside class="ui-sidebar" data-ui-sidebar-panel aria-label="Навигация приложения">
<div class="ui-sidebar__inner">
<header class="ui-sidebar__header">
<div class="ui-dropdown" data-ui-dropdown data-align="start">
<button class="ui-sidebar__menu-button" data-size="lg" type="button" data-ui-dropdown-trigger aria-label="Рабочее пространство"><span class="ui-sidebar__brand"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="ui-icon lucide lucide-layers" aria-hidden="true" focusable="false"><path d="M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z"></path><path d="M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12"></path><path d="M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17"></path></svg></span><span class="ui-sidebar__label" data-doc-sidebar-workspace>Acme Inc</span><span class="ui-sidebar__chevron"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="ui-icon lucide lucide-chevrons-up-down" aria-hidden="true" focusable="false"><path d="m7 15 5 5 5-5"></path><path d="m7 9 5-5 5 5"></path></svg></span></button>
<div class="ui-dropdown__menu" data-ui-dropdown-menu hidden><div class="ui-dropdown__label">Рабочие пространства</div><button class="ui-dropdown__item" type="button" role="menuitem" data-doc-sidebar-switch="Acme Inc"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="ui-icon lucide lucide-layers" aria-hidden="true" focusable="false"><path d="M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z"></path><path d="M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12"></path><path d="M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17"></path></svg><span>Acme Inc</span></button><button class="ui-dropdown__item" type="button" role="menuitem" data-doc-sidebar-switch="Личное"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="ui-icon lucide lucide-layers" aria-hidden="true" focusable="false"><path d="M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z"></path><path d="M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12"></path><path d="M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17"></path></svg><span>Личное</span></button></div>
</div>
<label class="ui-sr-only" for="demo-sidebar-skeleton-search">Поиск по меню</label><input class="ui-input ui-sidebar__input" type="search" id="demo-sidebar-skeleton-search" placeholder="Поиск…" data-doc-sidebar-search>
</header>
<div class="ui-sidebar__content" data-ui-scroll-area-target tabindex="0" aria-label="Пункты навигации"><div class="ui-sidebar__group" role="status" aria-label="Загрузка навигации"><div class="ui-sidebar__group-label">Загрузка…</div><ul class="ui-sidebar__menu"><li class="ui-sidebar__skeleton" style="--ui-sidebar-skeleton-width:65%" aria-hidden="true"></li><li class="ui-sidebar__skeleton" style="--ui-sidebar-skeleton-width:80%" aria-hidden="true"></li><li class="ui-sidebar__skeleton" style="--ui-sidebar-skeleton-width:55%" aria-hidden="true"></li><li class="ui-sidebar__skeleton" style="--ui-sidebar-skeleton-width:70%" aria-hidden="true"></li><li class="ui-sidebar__skeleton" style="--ui-sidebar-skeleton-width:60%" aria-hidden="true"></li></ul></div></div>
<footer class="ui-sidebar__footer"><div class="ui-dropdown" data-ui-dropdown data-side="top" data-align="start"><button class="ui-sidebar__menu-button" data-size="lg" type="button" data-ui-dropdown-trigger aria-label="Меню профиля"><span class="doc-sidebar-avatar" aria-hidden="true">АС</span><span class="ui-sidebar__label">Анна Смирнова<small>anna@example.com</small></span><span class="ui-sidebar__chevron"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="ui-icon lucide lucide-chevrons-up-down" aria-hidden="true" focusable="false"><path d="m7 15 5 5 5-5"></path><path d="m7 9 5-5 5 5"></path></svg></span></button><div class="ui-dropdown__menu" data-ui-dropdown-menu hidden><button class="ui-dropdown__item" type="button" role="menuitem" data-doc-sidebar-page="Профиль"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="ui-icon lucide lucide-user" aria-hidden="true" focusable="false"><path d="M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2"></path><circle cx="12" cy="7" r="4"></circle></svg><span>Профиль</span></button><button class="ui-dropdown__item" type="button" role="menuitem" data-doc-sidebar-page="Настройки"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="ui-icon lucide lucide-settings" aria-hidden="true" focusable="false"><path d="M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915"></path><circle cx="12" cy="12" r="3"></circle></svg><span>Настройки</span></button></div></div></footer>
</div>
<button class="ui-sidebar__rail" type="button" data-ui-sidebar-rail tabindex="-1" aria-label="Переключить панель"></button>
</aside>
<div class="ui-sidebar__inset doc-sidebar-inset">
<div class="doc-sidebar-toolbar"><button class="ui-button ui-button--ghost ui-button--icon-sm" type="button" data-ui-sidebar-trigger aria-label="Переключить панель"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="ui-icon lucide lucide-panel-left" aria-hidden="true" focusable="false"><rect width="18" height="18" x="3" y="3" rx="2"></rect><path d="M9 3v18"></path></svg></button><span class="doc-sidebar-toolbar-divider" aria-hidden="true"></span><span data-doc-sidebar-breadcrumb>Рабочее пространство</span></div>
<div class="doc-sidebar-main" data-ui-scroll-area-target><div class="doc-sidebar-heading"><span>Обзор</span><h3 data-doc-sidebar-title>Главная</h3><p data-doc-sidebar-description>Ваши проекты, задачи и последние обновления.</p></div><div class="doc-sidebar-metrics"><article class="ui-card"><div class="ui-card__content"><span>Проекты</span><strong>12</strong><small>+2 за неделю</small></div></article><article class="ui-card"><div class="ui-card__content"><span>Задачи</span><strong>28</strong><small>8 завершено</small></div></article></div><div class="doc-sidebar-activity"><h4>Последняя активность</h4><p><span class="doc-sidebar-activity-dot"></span>Обновлена библиотека UIkit</p><p><span class="doc-sidebar-activity-dot"></span>Добавлены новые компоненты</p><p><span class="doc-sidebar-activity-dot"></span>Готовы макеты приложения</p></div></div>
</div>
</div>
<p class="ui-sr-only" role="status" data-doc-sidebar-status></p>
</div>Keyboard · Клавиатура
Tab и Shift+Tab проходят по обычным ссылкам и кнопкам. Enter и Space раскрывают details. Cmd+B на Mac и Ctrl+B на Windows переключают панель с фокусом; если фокус снаружи, выбирается первая видимая панель. В текстовых полях сочетание не перехватывается. data-keyboard="false" отключает его.
Референс
Композиция и варианты адаптированы по Sidebar shadcn/ui для HTML, CSS и jQuery.
API
| Класс / атрибут | Назначение |
|---|---|
| data-ui-sidebar / data-ui-sidebar-panel | Provider и одна панель; автоматическая инициализация. |
| data-ui-sidebar-trigger / -rail / -close | Переключить, переключить краевой кнопкой, закрыть мобильную панель. |
| data-collapsible | offcanvas (по умолчанию), icon, none. |
| data-variant / data-side | sidebar | floating | inset; left | right. |
| data-default-open | true по умолчанию; false начинает со свёрнутой панели на десктопе. |
| data-mobile / data-breakpoint | auto (по умолчанию) | true | false; граница мобильного режима 767px. |
| data-keyboard / data-storage-key | Сочетание Cmd/Ctrl+B (true); необязательный ключ localStorage. |
| state() | {state, open, openMobile, isMobile, side, variant, collapsible}. state: expanded | collapsed — состояние десктопа. |
| open / close / toggle / setOpen(boolean) | Меняют текущий режим; возвращают jQuery для цепочки вызовов. |
| refresh / destroy | Перечитать настройки и обновить ARIA; снять обработчики, вернуть DOM и исходные атрибуты. |
| ui:sidebar:beforechange / ui:sidebar:change | До / после изменения. beforechange отменяется. detail: состояние и source (api, trigger, keyboard, close, escape, outside, native). |
| open / defaultOpen / onOpenChange | Параметры uiSidebar({...}); onOpenChange(open, state) вызывается после изменения. |
Доступность
- Используйте nav с доступным именем для каждой группы ссылок. Для навигации подходят обычные списки, ссылки и кнопки; role="menu" здесь не нужен.
- Отмечайте текущую страницу aria-current="page". Названия пунктов в .ui-sidebar__label сохраняются как aria-label при сворачивании до иконок.
- Trigger получает aria-expanded и aria-controls. Мобильный dialog удерживает фокус, блокирует фон и возвращает фокус после закрытия.
- Подписывайте поиск и действия с иконками. Disabled используйте на нативной кнопке. Контент доступен без JavaScript; мобильный диалог и переключение требуют плагина.
- Проверяйте длинные названия, RTL, тёмную тему, reduced motion и forced-colors. Скелетоны скрывайте от скринридера, состояние загрузки подписывайте отдельно.