Button
Display a text button with or without: icons, loaders, redirects
Introduction
Display a text button with or without: icons, loaders, redirects
Contrary to html standards, by defaults buttons type will be `button` even if it's used inside a form. Make sure to set the type to submit when needed
Icons will scale up alongside buttons, spacing will also differ when a button is added through the `start` or `end` props as shown in the following figure, it is generally advised to use them.
Changing which tag is rendered is trivial, but rather than changing the tag to an `a` element it is instead advised to wrap button element inside Link elements as you won't benefit from qwik.js cross-page optimizations otherwise.