We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
What you were expecting: Should be able to use <Tab label="summary"> as shown in the documentation.
<Tab label="summary">
What happened instead: Looks like all the possible Tab props are required:
TS2740: Type '{ children: Element[]; label: string; }' is missing the following properties from type '{ [x: string]: any; basePath: any; children: any; contentClassName: any; context: any; className: any; icon: any; label: any; record: any; resource: any; value: any; }': basePath, contentClassName, context, className, and 4 more.
Also, it would be nice if that list of props was available as an exported TabProp interface.
Steps to reproduce: Try creating the TabbedShowLayout example from the docs, should be enough to show the issue.
The text was updated successfully, but these errors were encountered:
Thanks for the report. We haven't converted Tab to TypeScript yet, so TypeScript falls back to inference from PropTypes, which is wrong in that case.
Sorry, something went wrong.
Convert Tab component to TypeScript
a466e70
Closes #5334
fzaninotto
Successfully merging a pull request may close this issue.
What you were expecting:
Should be able to use
<Tab label="summary">
as shown in the documentation.What happened instead:
Looks like all the possible Tab props are required:
Also, it would be nice if that list of props was available as an exported TabProp interface.
Steps to reproduce:
Try creating the TabbedShowLayout example from the docs, should be enough to show the issue.
The text was updated successfully, but these errors were encountered: