/
githubmirror
/
material-ui
Обзор
Документация
Войти
/
githubmirror
/
material-ui
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
packages/mui-material/src/InputBase/InputBase.spec.tsx
25 строк
492 B
sai chand
[material-ui][InputBase] Add `sx` type to `input` , `root` slot (#39569)
02 ноя 2023, 09:40
Не верифицирован
02 ноя 2023, 09:40
a1cc186
Код
Авторство
О чём код?
import * as React from 'react'; import { expectType } from '@mui/types'; import InputBase from '@mui/material/InputBase'; <InputBase onInvalid={(event) => { expectType<React.FormEvent<HTMLInputElement | HTMLTextAreaElement>, typeof event>(event); }} />; // Tests presence of `sx` prop on input and root slot <InputBase slotProps={{ input: { sx: { background: 'white', }, }, root: { sx: { background: 'black', }, }, }} />;