mirror of
https://github.com/clash-verge-rev/clash-verge-rev.git
synced 2026-01-29 00:35:38 +08:00
25 lines
635 B
TypeScript
25 lines
635 B
TypeScript
import { TextField, type TextFieldProps, styled } from "@mui/material";
|
|
import { useTranslation } from "react-i18next";
|
|
|
|
export const BaseStyledTextField = styled((props: TextFieldProps) => {
|
|
const { t } = useTranslation();
|
|
|
|
return (
|
|
<TextField
|
|
autoComplete="new-password"
|
|
hiddenLabel
|
|
fullWidth
|
|
size="small"
|
|
variant="outlined"
|
|
spellCheck="false"
|
|
placeholder={t("Filter conditions")}
|
|
sx={{ input: { py: 0.65, px: 1.25 } }}
|
|
{...props}
|
|
/>
|
|
);
|
|
})(({ theme }) => ({
|
|
"& .MuiInputBase-root": {
|
|
background: theme.palette.mode === "light" ? "#fff" : undefined,
|
|
},
|
|
}));
|