diff --git a/docs/data/joy/main-features/color-inversion/ColorInversionHeader.js b/docs/data/joy/main-features/color-inversion/ColorInversionHeader.js index 25d3cd590c5dca..9d818c8a89affe 100644 --- a/docs/data/joy/main-features/color-inversion/ColorInversionHeader.js +++ b/docs/data/joy/main-features/color-inversion/ColorInversionHeader.js @@ -9,6 +9,8 @@ import ListDivider from '@mui/joy/ListDivider'; import ListItemDecorator from '@mui/joy/ListItemDecorator'; import Menu from '@mui/joy/Menu'; import MenuItem from '@mui/joy/MenuItem'; +import MenuButton from '@mui/joy/MenuButton'; +import Dropdown from '@mui/joy/Dropdown'; import Typography from '@mui/joy/Typography'; import Sheet from '@mui/joy/Sheet'; import Chip from '@mui/joy/Chip'; @@ -19,7 +21,6 @@ import KeyboardArrowDownIcon from '@mui/icons-material/KeyboardArrowDown'; import ColorLensRoundedIcon from '@mui/icons-material/ColorLensRounded'; export default function ColorInversionHeader() { - const [anchorEl, setAnchorEl] = React.useState(null); const [color, setColor] = React.useState('primary'); return ( - { - setAnchorEl(event.currentTarget); - }} - endDecorator={} - > - Main - - setAnchorEl(null)} - placement="bottom-start" - disablePortal - size="sm" - sx={{ - '--ListItemDecorator-size': '24px', - '--ListItem-minHeight': '40px', - '--ListDivider-gap': '4px', - minWidth: 200, - }} - > - setAnchorEl(null)}> - - - - Products - - - setAnchorEl(null)}>Pricing - setAnchorEl(null)}> - Case studies{' '} - - `rgba(${theme.vars.palette.primary.mainChannel} / 0.1)`, - }} - > - Beta - - - + + }, + }} + > + Main + + + + + + + Products + + + Pricing + + Case studies{' '} + + `rgba(${theme.vars.palette.primary.mainChannel} / 0.1)`, + }} + > + Beta + + + + - setMenuButton(null)} - > - New tab - New window - - Delete - + + }> + Actions + + + New tab + New window + + Delete + + ('danger'); - const [menuButton, setMenuButton] = React.useState(null); return ( - setMenuButton(null)} - > - New tab - New window - - Delete - + + }> + Actions + + + New tab + New window + + Delete + +