How to use the @mui-treasury/utils.useSelectItem function in @mui-treasury/utils

To help you get started, we’ve selected a few @mui-treasury/utils 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 / molecules / BoxTabs.js View on Github external
const BoxTabs = ({ children, tabs, tabItemProps, initialTabIndex }) => {
  const { selectedKey, setSelectedKey } = useSelectItem(initialTabIndex);
  const tabsStyles = useTabsStyles();
  const tabItemStyles = useTabItemStyles();
  const wrapContent = (content, wrapperProps) => (
    
      {content}
    
  );
  return (
    <>