Carbon Design System SVG icons as Svelte components
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.
To install the carbon-icons-svelte library as a development dependency, you can use the following code snippet:
npm install --save-dev carbon-icons-svelte
To use the carbon-icons-svelte library, follow these steps:
carbon-icons-svelte/lib
folder. Refer to the Icon Index for a list of supported icons.size
prop to specify the desired size for the icon. Supported size options include 16, 20, 24, and 32. The default size is 16.fill
prop or pass any other valid SVG attribute to the component.title
prop.The carbon-icons-svelte library is a zero dependency icon library that provides developers with Carbon Design System SVG icons as Svelte components. It offers customizable options for size, color, labeling, and supports standalone usage or integration with carbon-components-svelte. With its easy installation and usage, this library can enhance the visual aesthetics and accessibility of Svelte applications.