import * as React from 'react'; import { CssVarsProvider } from '@mui/joy/styles'; import List from '@mui/joy/List'; import ListItem from '@mui/joy/ListItem'; import ListItemButton from '@mui/joy/ListItemButton'; export default function NestedVariables() { return ( ({ ...theme.variants.outlined.neutral, bgcolor: 'background.level3', '--List-radius': '16px', '--List-padding': '8px', '--List-gap': '4px', '& > li [role="button"]': { bgcolor: 'background.surface', }, })} > Item 1 Item 2 li [role="button"]': { bgcolor: 'background.level2', }, }} > Item 2.1 Item 2.2 Item 2.3 li [role="button"]': { bgcolor: 'background.level1', }, }} > Item 2.3.1 Item 2.3.2 Item 2.3.3 Item 3 ); }