CaptainCodeman / svelte-headlessui

HeadlessUI components for Svelte
https://captaincodeman.github.io/svelte-headlessui/
MIT License
529 stars 25 forks source link

Tab Components #63

Closed davemaul closed 11 months ago

davemaul commented 1 year ago

Hi @CaptainCodeman,

props to this super nice and easy to style library. I just wanted to ask the question when the see apparently already implemented Tabs component will be released. Are there any todos one you need help with? Asking because the original library has a rather unpleasant approach to styling.

Thanks!

CaptainCodeman commented 1 year ago

Yeah, I need to check where I got up to with that one and try to dedicate some time to getting it completed.

davemaul commented 1 year ago

That'd be great! Let me know if you need some support. :)

CaptainCodeman commented 11 months ago

I added an initial version of the Tabs component, it's not published to npm yet but you can try it out

The createTabs factory accepts an auto property that defaults to true, setting it to false makes tab activation manual (using the arrow keys). There's also an orientation option that can be set to horizontal (default) or vertical.

Let me know what you think.