Typescript extended props not show v6
See original GitHub issueDescribe the bug Define typescript props for component with extending other props, doesn’t show the extended props.
For example a component with
interface TProps extends ComponentPropsWithoutRef<"input"> {
label?: string;
state?: InputState;
helper?: string | React.ReactElement;
}
export const TextField = forwardRef(
(
{ label, placeholder, state, helper, ...rest }: TProps,
ref: Ref<HTMLInputElement>
) => (
...
)
);
Produces the following

Expected behavior Its suppose to show all the props valid for the component such as type, max, min e.t.c
System:
Environment Info:
Binaries:
Node: 14.2.0 - ~/.nvm/versions/node/v14.2.0/bin/node
Yarn: 1.22.4 - /usr/local/bin/yarn
npm: 6.14.7 - ~/.nvm/versions/node/v14.2.0/bin/npm
Browsers:
Chrome: 84.0.4147.125
Firefox: 77.0.1
Safari: 13.1.2
npmPackages:
@storybook/addon-docs: ^6.0.6 => 6.0.6
@storybook/addon-essentials: ^6.0.6 => 6.0.6
@storybook/addon-knobs: ^6.0.6 => 6.0.6
@storybook/addon-links: ^6.0.6 => 6.0.6
@storybook/addon-notes: ^5.3.19 => 5.3.19
@storybook/addon-storysource: ^6.0.6 => 6.0.6
@storybook/addon-viewport: ^6.0.6 => 6.0.6
@storybook/addons: ^6.0.6 => 6.0.6
@storybook/preset-create-react-app: ^3.1.4 => 3.1.4
@storybook/react: ^6.0.6 => 6.0.6
Issue Analytics
- State:
- Created 3 years ago
- Reactions:15
- Comments:27 (6 by maintainers)
Top Results From Across the Web
javascript - TypeScript - Extending individual props which is ...
I'm already extending from Muis base props. interface IText extends TypographyProps {. I'm after avoiding having to manage all of the types ...
Read more >TypeScript - Storybook
If you run into an issue where any additional props don't show up, check your component's code. If you're using a default export,...
Read more >Upgrade to React Router v6 - TypeScript TV
Learn how to upgrade from React Router v5 to React Router v6. ... Props from routes ... There is no more need to...
Read more >TypeScript - Sequelize
// 'projects' is excluded as it's not an attribute, it's an association. class User extends Model< ...
Read more >React Navigation v6 with TypeScript | by Joseph Ajibodu
navigation prop and the · route prop received by a screen. We want IntelliSense when we want to navigate to another screen, we...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Maybe it a little bit tricky but I found temporary solution to generate only material ui props and ignore all of HTML props.
Currently we’re using Storybook 6.2.9 with Material UI 4.12.0 and the below configuration works flawlessly for us. It renders all the MUI props properly and ignores all the default HTML props. The two key changes for us were the
propFilter
andallowSyntheticDefaultImports
options. Hope this helps some of you!