React Pro Sidebar provides a set of components for creating high level and customizable side navigation
collapsed
proptoggled
proponBackdropClick
proponBreakPoint
propProSidebarProvider
and made it optionaluseProSidebar
all
and deprecate always
closeOnClick
triggering close on nested SubMenu clickProSidebarProvider
and useProSidebar
transitionDuration
collision with Sidebar's transitionDuration
React Pro Sidebar 1.0.0 is here 🎉
For full list of changes, browse changelogs matching 1.0.0-alpha.*
and 1.0.0-beta.*
routerLink
prop in favor of component
component
propfix build
renderMenuItemStyles
to menuItemStyles
which now is of type MenuItemStyles
, the prop now provide a way to apply styles directly to MenuItem/SubMenu component and their childrenType definition:
type ElementStyles = CSSObject | ((params: MenuItemStylesParams) => CSSObject | undefined);
interface MenuItemStyles {
root?: ElementStyles;
button?: ElementStyles;
label?: ElementStyles;
prefix?: ElementStyles;
suffix?: ElementStyles;
icon?: ElementStyles;
subMenuContent?: ElementStyles;
SubMenuExpandIcon?: ElementStyles;
}
updated classnames, the following are the new names:
ps-sidebar-root
ps-sidebar-container
ps-sidebar-image
ps-sidebar-backdrop
ps-collapsed
ps-toggled
ps-rtl
ps-broken
ps-menu-root
ps-menuitem-root
ps-submenu-root
ps-menu-button
ps-menu-prefix
ps-menu-suffix
ps-menu-label
ps-menu-icon
ps-submenu-content
ps-submenu-expand-icon
ps-disabled
ps-active
ps-open
Added utility classes that can be used to reference used classes