[Chip] Variant typescript error #45091
Labels
component: chip
This is the name of the generic UI component, not the React module!
status: waiting for author
Issue with insufficient information
typescript
Steps to reproduce
Current behavior
No overload matches this call.
Overload 1 of 2, '(props: { component: ElementType<any, keyof IntrinsicElements>; } & ChipOwnProps & CommonProps & Omit<any, "className" | ... 15 more ... | "variant">): Element | null', gave the following error.
Type '"outlined"' is not assignable to type '"positive" | "negative" | undefined'.
Overload 2 of 2, '(props: DefaultComponentProps<ChipTypeMap<{}, "div">>): Element | null', gave the following error.
Type '"outlined"' is not assignable to type '"positive" | "negative" | undefined'.
Expected behavior
no error
Context
No response
Your environment
System:
OS: Windows 10 10.0.19045
Binaries:
Node: 22.11.0 - C:\Program Files\nodejs\node.EXE
npm: 10.9.0 - C:\Program Files\nodejs\npm.CMD
pnpm: Not Found
Browsers:
Chrome: Not Found
Edge: Chromium (127.0.2651.74)
npmPackages:
@emotion/react: ^11.13.5 => 11.13.5
@emotion/styled: ^11.13.5 => 11.13.5
@mui/base: 5.0.0-beta.40
@mui/core-downloads-tracker: 5.16.14
@mui/icons-material: ^5.16.14 => 5.16.14
@mui/lab: 5.0.0-alpha.173
@mui/material: ^5.16.14 => 5.16.14
@mui/private-theming: 5.16.14
@mui/styled-engine: 5.16.14
@mui/system: 5.16.14
@mui/types: 7.2.19
@mui/utils: 5.16.14
@mui/x-date-pickers: 5.0.20
@types/react: ^18.3.12 => 18.3.12
react: ^18.3.1 => 18.3.1
react-dom: ^18.3.1 => 18.3.1
typescript: ^4.9.5 => 4.9.5
Search keywords: chip
The text was updated successfully, but these errors were encountered: