mui / base-ui

Base UI is an open-source library of accessible, unstyled UI components for React.
https://mui.com/base-ui/
MIT License
259 stars 44 forks source link

[accordion] Support "hidden=until-found" pattern #702

Open oliviertassinari opened 2 weeks ago

oliviertassinari commented 2 weeks ago

Summary

The hidden="until-found" attribute isn't widely available yet: https://caniuse.com/mdn-html_global_attributes_hidden_until-found_value but it would be great to plan its support. It's better UX. https://developer.chrome.com/docs/css-ui/hidden-until-found for more details

We also have something related to not mounting children to save performance https://mui.com/material-ui/react-accordion/#performance, and this would be another part of the tradeoff for developers when deciding which path they take.

Examples

Search keywords: -

colmtuite commented 2 weeks ago

@oliviertassinari It's already supported in our Accordion component.

oliviertassinari commented 2 weeks ago

@colmtuite I have linked this issue with its PR 4 minutes before you commented 👍.

I noticed this issue while I was browsing with Jose the tiptap pricing page and got frustrated I couldn't search in their FAQ accordion https://tiptap.dev/pricing.