# Button

Use the button for primary actions, secondary actions, links, and icon-only controls. Pass `href` to
render as an anchor, or set `newTab` to open the link in a new tab.

```svelte
<script lang="ts">
	import { Button } from '~/components/button';
</script>

<div class="flex items-center gap-3">
	<Button variant="default">Save</Button>
	<Button variant="outline">Cancel</Button>
	<Button href="/docs" variant="ghost">Docs</Button>
</div>
```