with the "variation" prop, vscode shows an Not assignable type error.
Reproduction
I was able to find the bug by simply copying and pasting the code for the Omni component from the official docs (here).
Here is an image of the error
Here is the complete error message displayed by vscode when i hover the variation prop:
(JSX attribute) variation: string Type '{ variation: string; active: true; }' is not assignable to type 'IntrinsicAttributes & { actions?: IForwardedActions; element?: HTMLLIElement; active?: boolean; disabled?: boolean; palette?: "auto" | ... 7 more ... | "negative"; ... 7 more ...; hidden?: PROPERTY_HIDDEN; }'. Property 'variation' does not exist on type 'IntrinsicAttributes & { actions?: IForwardedActions; element?: HTMLLIElement; active?: boolean; disabled?: boolean; palette?: "auto" | ... 7 more ... | "negative"; ... 7 more ...; hidden?: PROPERTY_HIDDEN; }'.js(2322)
Describe the Bug
When using the component
Not assignable type
error.Reproduction
I was able to find the bug by simply copying and pasting the code for the
Omni
component from the official docs (here).Here is an image of the error
Here is the complete error message displayed by vscode when i hover the
variation
prop:(JSX attribute) variation: string Type '{ variation: string; active: true; }' is not assignable to type 'IntrinsicAttributes & { actions?: IForwardedActions; element?: HTMLLIElement; active?: boolean; disabled?: boolean; palette?: "auto" | ... 7 more ... | "negative"; ... 7 more ...; hidden?: PROPERTY_HIDDEN; }'. Property 'variation' does not exist on type 'IntrinsicAttributes & { actions?: IForwardedActions; element?: HTMLLIElement; active?: boolean; disabled?: boolean; palette?: "auto" | ... 7 more ... | "negative"; ... 7 more ...; hidden?: PROPERTY_HIDDEN; }'.js(2322)
System Info
Additional Context
No response