carbon-components-svelte/README.md

1.4 KiB

carbon-components-svelte

NPM Build

Svelte implementation of the Carbon Design System

NOTE: Currently, this project is under active development. See the issue tracker for the anticipated v1.0.0 release.

Storybook · Svelte REPL

Getting Started

carbon-components-svelte can be installed as a development dependency.

yarn add -D carbon-components-svelte

Usage

<script>
  import { Button } from 'carbon-components-svelte';
</script>

<svelte:head>
  <link
    rel="stylesheet"
    href="https://unpkg.com/carbon-components@10.9.0/css/carbon-components.min.css" />
</svelte:head>

<Button>Primary</Button>

Try it in the Svelte REPL.

Contributing

Refer to the Contributing guidelines.

Changelog

License

Apache 2.0