Files
clash-verge-rev/src/components/base/base-styled-select.tsx
2024-07-07 11:16:59 +08:00

20 lines
454 B
TypeScript

import { Select, SelectProps, styled } from "@mui/material";
export const BaseStyledSelect = styled((props: SelectProps<string>) => {
return (
<Select
size="small"
autoComplete="new-password"
sx={{
width: 120,
height: 33.375,
mr: 1,
'[role="button"]': { py: 0.65 },
}}
{...props}
/>
);
})(({ theme }) => ({
background: theme.palette.mode === "light" ? "#fff" : undefined,
}));