Skip to main content

NavigationMenuIconButton

Interfaces

Extends

  • IconButtonProps

Properties

PropertyTypeDescription
DrawerProps?DrawerPropsProps to spread to drawer element

Default
{anchor: 'left'}
ScrollContainerProps?Record<string, any>Props to spread to ScrollContainer component
This lib use 'react-custom-scrollbars' component to perform scrollbars
For more info: https://github.com/malte-wessel/react-custom-scrollbars/blob/master/docs/API.md

Default
{}
drawerContent?ReactNodeCustom Drawer content

Default
null
drawerHeaderContent?ReactNodeCustom Drawer header content

Default
null

Functions

NavigationMenuContent(inProps): Element

Parameters

ParameterType
inPropsDefaultDrawerContentProps

Returns

Element

Source

packages/react-ui/src/components/NavigationMenuIconButton/DefaultDrawerContent.tsx:27


NavigationMenuHeader(inProps): Element

Parameters

ParameterType
inPropsDefaultHeaderContentProps

Returns

Element

Source

packages/react-ui/src/components/NavigationMenuIconButton/DefaultHeaderContent.tsx:30


NavigationMenuIconButton(inProps): JSX.Element

API documentation for the Community-JS Navigation Menu Icon Button component. Learn about the available props and the CSS API.

Import

import {NavigationMenuIconButton} from '@selfcommunity/react-ui';

Component Name

The name SCNavigationMenuIconButton can be used when providing style overrides in the theme.

CSS

Rule NameGlobal classDescription
root.SCNavigationMenuIconButton-rootStyles applied to the root element.
drawerRoot.SCNavigationMenuIconButton-drawer-rootStyles applied to the drawer root element.
drawerHeader.SCNavigationMenuIconButton-drawer-headerStyles applied to the drawer header.
drawerHeaderAction.SCNavigationMenuIconButton-drawer-header-actionStyles applied to the drawer header action element.
drawerContent.SCNavigationMenuIconButton-drawer-contentStyles applied to the drawer content.

Parameters

ParameterTypeDescription
inPropsNavigationMenuIconButtonProps

Returns

JSX.Element

Source

packages/react-ui/src/components/NavigationMenuIconButton/NavigationMenuIconButton.tsx:85