Svelte implementation of the Carbon Design System
carbon-components-svelte
can be installed as a development dependency.
yarn add -D carbon-components-svelte
<script>
import { Button } from "carbon-components-svelte";
</script>
<svelte:head>
<link
rel="stylesheet"
href="https://unpkg.com/carbon-components/css/carbon-components.min.css"
/>
</svelte:head>
<Button>Primary</Button>
This library ships with TypeScript definitions (types/index.d.ts).
Refer to COMPONENT_INDEX.md for component documentation.
Refer to the Contributing guidelines.