You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using ToggleGroup, where ToggleGroup.Item are represented as buttons, onValueChange$ I'm updating the URL (pathname and searchParams) and navigating to that URL (using the useNavigate hook)
Notice that for SEO, and accessibility it's better to use the <Link> component instead of useNavigate() programmatically to navigate to a new page after some user interaction.
Buttons is not adviced for SEO.
Describe the solution you'd like
Would be great to be able to switch any component that involved a button to a link.
Describe alternatives you've considered
Passing a props something like hrefProps if the props is given then we switch.
Additional context
No response
The text was updated successfully, but these errors were encountered:
The approach we currently use on styled components is smth like class={cn(buttonVariants({ look: 'link' }))}, but not sure if that will be possible for the Toggle. Otherwise we'll need to figure out a way to do the asChild prop.
Is your feature request related to a problem?
I'm using
ToggleGroup
, whereToggleGroup.Item
are represented as buttons,onValueChange$
I'm updating the URL (pathname and searchParams) and navigating to that URL (using theuseNavigate
hook)However, qwik docs said the following:
Buttons is not adviced for SEO.
Describe the solution you'd like
Would be great to be able to switch any component that involved a
button
to alink
.Describe alternatives you've considered
Passing a props something like
hrefProps
if the props is given then we switch.Additional context
No response
The text was updated successfully, but these errors were encountered: