/
githubmirror
/
material-ui
Обзор
Документация
Войти
/
githubmirror
/
material-ui
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
packages/mui-material/src/InputLabel/InputLabel.spec.tsx
32 строки
995 B
renovate[bot]
Bump eslint-plugin-import to ^2.28.0 (#38226)
31 июл 2023, 13:15
Не верифицирован
31 июл 2023, 13:15
f391b53
Код
Авторство
О чём код?
import * as React from 'react'; import { expectType } from '@mui/types'; import InputLabel from '@mui/material/InputLabel'; const CustomComponent: React.FC<{ prop1: string; prop2: number }> = function CustomComponent() { return <div />; }; const InputLabelTest = () => { return ( <div> <InputLabel /> <InputLabel component="legend" /> <InputLabel component="legend" onClick={(event) => { expectType<React.MouseEvent<HTMLLegendElement, MouseEvent>, typeof event>(event); }} /> {/* @ts-expect-error */} <InputLabel component="a" incorrectAttribute="url" /> {/* @ts-expect-error */} <InputLabel component="div" href="url" /> <InputLabel component={CustomComponent} prop1="1" prop2={12} /> {/* @ts-expect-error */} <InputLabel component={CustomComponent} prop1="1" /> {/* @ts-expect-error */} <InputLabel component={CustomComponent} prop1="1" prop2="12" /> </div> ); };