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

Error when styling tabs using Docs example #100

Merged
merged 1 commit into from
Jun 11, 2023

Conversation

VitroidFPV
Copy link
Contributor

@VitroidFPV VitroidFPV commented Jun 3, 2022

The existing example of styling tabs in the Docs <Tab class={({selected}) => "tab-selected" : "tab-unselected"}>Tab 1</Tab> throws this error Expected } svelte(unexpected-token) Expected } js(-1) at the : character

Fixed by changing it to <Tab class={({selected}) => selected ? "tab-selected" : "tab-unselected"}>Tab 1</Tab>

@vercel
Copy link

vercel bot commented Jun 3, 2022

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated
svelte-headlessui ✅ Ready (Inspect) Visit Preview Jun 3, 2022 at 0:37AM (UTC)

@rgossiaux
Copy link
Owner

Thanks for the PR @VitroidFPV !

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

Successfully merging this pull request may close these issues.

2 participants