---
title: "Svelte"
description: "A cva button component built with Svelte."
url: "https://cva.style/beta/examples/svelte/"
---

This example builds a `button` component with `cva` in a Svelte project. Open the sandbox below to explore the full source.

[View source on GitHub ↗](https://github.com/joe-bell/cva/tree/main/examples/beta/svelte/src/components/button.svelte)

Sorry, your browser [doesn't support](https://developer.stackblitz.com/platform/webcontainers/browser-support) this type of embed.

Try [visiting the example directly](https://stackblitz.com/github/joe-bell/cva/tree/main/examples/beta/svelte?file=src/components/button.svelte) or reopen this page in a Chromium-based browser.
