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
@radix-ui/react-tabs
keepRendered
A keepRendered option on the Tabs component
This option would keep the component placed inside rendered while hiding it via CSS.
For complex components with rendering (such as an SVG plot), this would remove the "hitch" that occurs when switching tabs to load the content.
Simply keep the props in the TabContent (don't modify the DOM) and just apply a display: none to the inactive tabs
TabContent
display: none
The text was updated successfully, but these errors were encountered:
Duplicate of #1155
Sorry, something went wrong.
No branches or pull requests
Feature request
Overview
A
keepRendered
option on the Tabs componentThis option would keep the component placed inside rendered while hiding it via CSS.
Who does this impact? Who is this for?
For complex components with rendering (such as an SVG plot), this would remove the "hitch" that occurs when switching tabs to load the content.
Simply keep the props in the
TabContent
(don't modify the DOM) and just apply adisplay: none
to the inactive tabsAdditional context
The text was updated successfully, but these errors were encountered: