Open
Description
Duplicates
- I have searched the existing issues
Latest version
- I have tested the latest version
Current behavior 😯
Creating a List component variant causes TypeScript errors when using the variant
prop in the variants
declaration or at the component usage site.
Suppressing the TypeScript errors allows the variant to be declared and used as expected.
Expected behavior 🤔
Creating a List component variant is supported in TypeScript.
ListProps
should have a declaration for variant
, like we have in ButtonProps
:
/**
* The variant to use.
* @default 'text'
*/
variant?: OverridableStringUnion<
'text' | 'outlined' | 'contained',
ButtonPropsVariantOverrides
>;
Steps to reproduce 🕹
Steps:
- Create a component variant for List using TypeScript.
Context 🔦
We're maintaining a UI library built on top of MUI, and we want to provide a "bordered" List variant for our users. This is is blocking us from doing that.
Your environment 🌎
No response