import { InputLabel as MUIInputLabel, inputLabelClasses as muiInputLabelClasses, InputLabelProps as MUIInputLabelProps, } from '@mui/material'; import { BLACK, BORDER_RADIUS, GREY } from '../../lib/consts/DEFAULT_THEME'; type OutlinedInputLabelProps = MUIInputLabelProps; const OutlinedInputLabel = ( inputLabelProps: OutlinedInputLabelProps, ): JSX.Element => { const { children, sx } = inputLabelProps; const combinedSx = { color: GREY, [`&.${muiInputLabelClasses.focused}`]: { backgroundColor: GREY, borderRadius: BORDER_RADIUS, color: BLACK, padding: '.1em .6em', }, ...sx, }; return ( {children} ); }; export type { OutlinedInputLabelProps }; export default OutlinedInputLabel;