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

Typo in Tabs Component Page #160

Open
nabriouso opened this issue Aug 6, 2023 · 0 comments
Open

Typo in Tabs Component Page #160

nabriouso opened this issue Aug 6, 2023 · 0 comments

Comments

@nabriouso
Copy link

Describe the bug
There is a typo in https://svelte-headlessui.goss.io/docs/2.0/tabs which renders the code broken

To Reproduce
Copy and paste this snippet <Tab class={({selected}) => "tab-selected" : "tab-unselected"}>Tab 1</Tab> any IDE you use will return the following "Expected } svelte(unexpected-token)"

To Fix
Use this snippet instead <Tab class={({selected}) => selected ? "tab-selected" : "tab-unselected"}>Tab 1</Tab>

Library version
2.0

Credit where credit is due, I didn't find this issue until someone pointed it out to me in a Discord server but they didn't have the time to report it so here I am.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant