Skip to content
New issue

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 options #2764

Closed
exoRift opened this issue Mar 7, 2024 · 1 comment
Closed

@radix-ui/react-tabs: keepRendered options #2764

exoRift opened this issue Mar 7, 2024 · 1 comment
Labels

Comments

@exoRift
Copy link

exoRift commented Mar 7, 2024

Feature request

Overview

A keepRendered option on the Tabs component

This 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 a display: none to the inactive tabs

Additional context

@benoitgrelard
Copy link
Contributor

Duplicate of #1155

@benoitgrelard benoitgrelard marked this as a duplicate of #1155 Mar 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants