Carbon Icons Svelte

screenshot of Carbon Icons Svelte
svelte

Carbon Design System SVG icons as Svelte components

Overview

The carbon-icons-svelte is an icon library that builds Carbon Design System SVG icons as Svelte components. It can be used in conjunction with carbon-components-svelte or on its own. This library provides developers with a set of customizable icons that can be easily integrated into Svelte applications.

Features

  • Carbon Design System SVG icons as Svelte components
  • Can be used with or without carbon-components-svelte
  • Customizable icon size
  • Supports a range of icon sizes including 16, 20, 24, and 32
  • Forwarding of custom props to the svg element
  • Optional labeling of icons

Usage

To use the carbon-icons-svelte library, follow these steps:

svelte
Svelte

Svelte is a modern front-end framework that compiles your code at build time, resulting in smaller and faster applications. It uses a reactive approach to update the DOM, allowing for high performance and a smoother user experience.

typescript
Typescript

TypeScript is a superset of JavaScript, providing optional static typing, classes, interfaces, and other features that help developers write more maintainable and scalable code. TypeScript's static typing system can catch errors at compile-time, making it easier to build and maintain large applications.