rgossiaux / svelte-headlessui

Unofficial Svelte port of the Headless UI component library
https://svelte-headlessui.goss.io
MIT License
1.79k stars 97 forks source link

Official support for the static attribute in TabPanel #125

Open jacktho opened 2 years ago

jacktho commented 2 years ago

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/

NoelOConnell commented 2 years ago

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.

ivanvanderbyl commented 2 years ago

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.