qwik-ui
qwik-ui copied to clipboard
[✨] Be able to switch a <button> to a <link> / <a> but still keeping the styled
Is your feature request related to a problem?
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)
However, qwik docs said the following:
Notice that for SEO, and accessibility it's better to use the
<Link>
component instead ofuseNavigate()
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