mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-15 02:11:05 +00:00
Svelte implementation of the Carbon Design System
https://svelte.carbondesignsystem.com
carboncarbon-design-systemcomponent-librarydesign-systemsveltesvelte-componentstypescripttypescript-definitionsui-componentsui-library
| .github | ||
| .storybook | ||
| docs | ||
| examples/rollup-typescript | ||
| scripts/rollup | ||
| src | ||
| types | ||
| .gitignore | ||
| .travis.yml | ||
| CHANGELOG.md | ||
| COMPONENT_INDEX.md | ||
| CONTRIBUTING.md | ||
| LICENSE | ||
| package.json | ||
| README.md | ||
| rollup.config.js | ||
| tsconfig.json | ||
| yarn.lock | ||
carbon-components-svelte
Svelte implementation of the Carbon Design System
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/css/carbon-components.min.css"
/>
</svelte:head>
<Button>Primary</Button>
TypeScript support
This library ships with TypeScript definitions (types/index.d.ts).
Components
Refer to COMPONENT_INDEX.md for component documentation.
Contributing
Refer to the Contributing guidelines.