svelte-headlessui icon indicating copy to clipboard operation
svelte-headlessui copied to clipboard

Official support for the static attribute in TabPanel

Open jacktho opened this issue 2 years ago • 2 comments

As per #1, the static attribute works as expected with TabPanel. However, it's undocumented and there is not typing for it.

It is also not documented for the upstream HeadlessUI so maybe there is something I don't know.

Tailwindui does use static for TabPanel in one of their templates: https://salient.tailwindui.com/

jacktho avatar Oct 11 '22 21:10 jacktho

It would be interesting to ask on HeadlessUI why it is not documented. static is in the documentation for the other components but not the Tabs component. So either it's just on oversight or they have a thought out reason not to include it.

NoelOConnell avatar Oct 17 '22 09:10 NoelOConnell

I'm sure a PR to update the docs would be welcome, indicating that it's not officially documented upstream but it is available in the current API.

ivanvanderbyl avatar Oct 20 '22 22:10 ivanvanderbyl