Files
react-test/docs/data/joy/getting-started/templates/rental-dashboard/components/OrderSelector.tsx

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

26 lines
664 B
TypeScript
Raw Normal View History

2025-12-12 14:26:25 +09:00
import MenuButton from '@mui/joy/MenuButton';
import Menu from '@mui/joy/Menu';
import MenuItem from '@mui/joy/MenuItem';
import ArrowDropDown from '@mui/icons-material/ArrowDropDown';
import Dropdown from '@mui/joy/Dropdown';
export default function OrderSelector() {
return (
<Dropdown>
<MenuButton
variant="plain"
color="primary"
endDecorator={<ArrowDropDown />}
sx={{ whiteSpace: 'nowrap' }}
>
Order by
</MenuButton>
<Menu sx={{ minWidth: 120 }}>
<MenuItem>Price</MenuItem>
<MenuItem>Date</MenuItem>
<MenuItem>Rating</MenuItem>
</Menu>
</Dropdown>
);
}