How to use the @mui-treasury/styles/menuItem/info/material.useMaterialInfoMenuItemStyles function in @mui-treasury/styles

To help you get started, we’ve selected a few @mui-treasury/styles examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github siriwatknp / mui-treasury / website / src / components / organisms / ComponentMenuList.js View on Github external
const ComponentMenuList = ({ menus, getOpenKeys }) => {
  const nestedStyles = useJupiterNestedMenuListStyles();
  const infoStyles = useMaterialInfoMenuItemStyles();
  const toggleStyles = useMaterialToggleMenuItemStyles();
  const { setOpened: setSidebarOpened } = useLayoutCtx();
  return (
    
      {({ location }) => {
        const paths = location.pathname.split('/');
        const lastPath = last(paths) || last(dropRight(paths));
        return (
github siriwatknp / mui-treasury / website / src / docs / components / menuList / nested / material / MaterialNestedMenuList.js View on Github external
const MaterialNestedMenuList = () => {
  const nestedStyles = useMaterialNestedMenuStyles();
  const actionToggleStyles = useMaterialActionToggleItemStyles();
  const infoStyles = useMaterialInfoMenuItemStyles();
  return (
    
       ({
          children: data.label,
          classes: actionToggleStyles,
          listItemProps: {
            className: nestedStyles.menuItem,
            classes: pick(infoStyles, ['root', 'focusVisible']),
          },
github siriwatknp / mui-treasury / website / src / docs / components / menuList / nested / jupiter / JupiterNestedMenuList.js View on Github external
const JupiterNestedMenuList = () => {
  const nestedStyles = useJupiterNestedMenuListStyles();
  const infoStyles = useMaterialInfoMenuItemStyles();
  const toggleStyles = useMaterialToggleMenuItemStyles();
  return (
    
       ({
          children: data.label,
          className: cx(
            toggleStyles.root,
            expanded && toggleStyles.expanded,
            nestedStyles.menuItem
github siriwatknp / mui-treasury / website / src / docs / components / menuItem / info / material / MaterialInfoMenuItem.js View on Github external
const MaterialInfoMenuItemDemo = () => {
  const styles = useMaterialInfoMenuItemStyles();
  return (
    
      {data.map(item => (
        
      ))}
    
  );
};
github siriwatknp / mui-treasury / website / src / docs / components / menuList / collapsible / material / MaterialCollapsibleMenuList.js View on Github external
const MaterialCollapsibleMenuList = () => {
  const [selectedKey, setSelectedKey] = React.useState('');
  const actionStyles = useMaterialActionToggleItemStyles();
  const toggleStyles = useMaterialToggleMenuItemStyles();
  const infoStyles = useMaterialInfoMenuItemStyles();
  const extraStyles = useStyles();
  return (
    
       (
          
            Parent menu