Quick Start
Install
npm install --save @casual-ui/svelte
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'
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" />
<script>
import { CButton } from '@casual-ui/svelte'
</script>
<CButton label="A Button" />
svelte
Click fold/expand code
On this page