@selfcommunity/react-ui
Version:
React UI Components to integrate a Community created with SelfCommunity Platform.
43 lines (34 loc) • 1.17 kB
TypeScript
import { IconButtonProps } from '@mui/material';
import { NavigationMenuDrawerProps } from './NavigationMenuDrawer';
export interface NavigationMenuIconButtonProps extends IconButtonProps {
/**
* Prop to show/hide the default drawer component
* @default true
*/
showDrawer?: boolean;
/**
* Callback triggered on menu click
* @default null
*/
onMenuIconClick?: () => void;
/**
* Props to spread to default drawer root
* @default {}
*/
DrawerProps?: NavigationMenuDrawerProps;
}
/**
* > API documentation for the Community-JS Navigation Menu Icon Button component. Learn about the available props and the CSS API.
#### Import
```jsx
import {NavigationMenuIconButton} from '@selfcommunity/react-ui';
```
#### Component Name
The name `SCNavigationMenuIconButton` can be used when providing style overrides in the theme.
#### CSS
|Rule Name|Global class|Description|
|---|---|---|
|root|.SCNavigationMenuIconButton-root|Styles applied to the root element.|
* @param inProps
*/
export default function NavigationMenuIconButton(inProps: NavigationMenuIconButtonProps): JSX.Element;