Skip to Content

SideMenuItem

Ссылка или действие SideMenu с произвольной глубиной вложенности. Наличие children определяет collapsible; отступ вычисляется автоматически. Start и стрелка сменяют друг друга в одной ячейке. End и notification — независимые слоты рядом с основным действием, без вложенных кнопок.

Использование

Состояния

Доступность

href создаёт настоящую ссылку, без href создаётся button. Ref и native attrs относятся к основному действию. Для раскрытия доступны отдельная кнопка и стрелки клавиатуры с учётом RTL. Focus основного действия сохраняет enabled; при переходе Tab непосредственно к дополнительному действию оно становится видимым.

API

ПропТипПо умолчаниюОписание
label*ReactNode—Non-interactive primary label. Long text truncates with ellipsis.
descriptionReactNode—Optional description; wraps within the remaining width.
startReactNode—Leading icon. A collapsible item swaps it for its disclosure on hover/active.
endReactNode—Independent actions; shown on hover/active or while actionsVisible is true.
notificationReactNode—Persistent notification content; numeric zero is preserved.
childrenReactNode—Nested items; their presence determines collapsible and indentation.
selectedbooleanCurrent navigation destination.
disabledbooleanDisable the primary action and all start/end actions.
expandedboolean—Controlled disclosure state.
defaultExpandedbooleanInitial uncontrolled disclosure state.
onExpandedChange(expanded: boolean) => void—Receives disclosure changes.
actionsVisiblebooleanKeep secondary actions visible while an associated popup is open.
onClickMouseEventHandler<HTMLAnchorElement | HTMLButtonElement>—Primary activation only; slot actions never invoke this handler.
onKeyDownKeyboardEventHandler<HTMLAnchorElement | HTMLButtonElement>—Native primary key handler; preventDefault cancels built-in navigation.
onAuxClickMouseEventHandler<HTMLAnchorElement | HTMLButtonElement>——
Last updated on