--- title: Button description: A component that can switch between a button and an anchor tag based on the `href` prop. --- {#snippet preview()} {/snippet} ## Structure ```svelte ```