qwik-ui icon indicating copy to clipboard operation
qwik-ui copied to clipboard

[✨] Be able to switch a <button> to a <link> / <a> but still keeping the styled

Open steffanek opened this issue 6 months ago • 1 comments

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 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

steffanek avatar Aug 26 '24 20:08 steffanek