Quick Start

Install

npm install --save @casual-ui/svelte
sh

Import style in your client entry

For example, if you're using

SvelteKit
. Then in your /src/routes/+layout.svelte

/src/routes/+layout.svelte
import '@casual-ui/svelte/dist/style/style.css'
js

Use in svelte files

<script>
  import { CButton } from '@casual-ui/svelte'
</script>

<CButton label="A Button" />
svelte
Click fold/expand code
Last update at: 2024/07/08 10:39:42