SideNav

The SideNav component is a customizable side navigation bar. It takes in an optional avatar and top actions to be displayed at the top, and a required bottom actions prop to be displayed at the bottom.

import { SideNav } from '@lobehub/ui';

Default

LobeHub

APIs

NameDescriptionTypeDefault
avatarAvatar to be displayed at the top of the sidenavReactNode--
bottomActionsActions to be displayed at the bottom of the sidenavReactNode--
topActionsActions to be displayed below the avatarReactNode--