Skip to content
This repository has been archived by the owner on Jan 23, 2024. It is now read-only.

Invalid prop used in Step #1609

Open
vikthorvergara opened this issue Jun 22, 2023 · 0 comments
Open

Invalid prop used in Step #1609

vikthorvergara opened this issue Jun 22, 2023 · 0 comments

Comments

@vikthorvergara
Copy link

vikthorvergara commented Jun 22, 2023

Description

Subject

Style Props

Description

Hi! I noticed that the Step and StepSeparator in the Showing Step Summary example here are using invalid props: gap and _horizontal, respectively.

In spite of that, it is working just fine! But blindly copying and pasting it in a TSX template had me confused for a minute.

Step gap: Type '{ children: Element[]; key: number; gap: string; onClick: () => void; }' is not assignable to type 'IntrinsicAttributes & Omit<DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "transition" | ... 2 more ... | "translate"> & { ...; } & { ...; }'. Property 'gap' does not exist on type 'IntrinsicAttributes & Omit<DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "transition" | ... 2 more ... | "translate"> & { ...; } & { ...; }'.ts(2322)

StepSeparator _horizontal: Type '{ _horizontal: { ml: string; }; }' is not assignable to type 'IntrinsicAttributes & Omit<DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "transition" | ... 2 more ... | "translate"> & { ...; } & { ...; }'. Property '_horizontal' does not exist on type 'IntrinsicAttributes & Omit<DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "transition" | ... 2 more ... | "translate"> & { ...; } & { ...; }'.ts(2322)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant