{"repo":"carbon-design-system/carbon-icons-svelte","free":true,"listed":false,"github":"https://github.com/carbon-design-system/carbon-icons-svelte","clone":"git clone https://github.com/carbon-design-system/carbon-icons-svelte.git","description":"Carbon Design System SVG icons as Svelte components","language":"TypeScript","stars":458,"topics":["ibm","icons","carbon","carbon-design-system","svelte","components","svg","svelte-components","svg-icons","typescript-definitions"],"license":"Apache-2.0","category":"ui-components","readme_excerpt":"carbon-icons-svelte [![NPM][npm]][npm-url] Carbon Design System SVG icons as Svelte components. This zero dependency icon library builds Carbon Design System icons as Svelte components. Although best paired with carbon-components-svelte, these icons can be consumed standalone. Try it in the Svelte REPL. Preview · Icon Index Installation Usage Direct Import Import the icon from the carbon-icons-svelte/lib folder. See the Icon Index for a list of supported icons. Base Import with Preprocessor [!TIP] Use optimizeImports from carbon-preprocess-svelte to speed up development times. Due to the size of the library, importing directly from the barrel file may result in slow development times, since the entire barrel file is imported (thousands of icons). optimizeImports is a Svelte preprocessor that optimizes import paths from Carbon Svelte libraries. It enables you to use the barrel file import syntax without importing the entire library. For example, the following is automatically re-written by optimizeImports : This offers the best of both worlds: - Concise import syntax - Fast development times (only the icons you need are imported) Custom size Use the size prop to specify the icon size. By design, the Carbon Design System uses a scale of 16, 20, 24, and 32 pixels for icons. However, you can still pass any number for size (pixels). The default size is 16 . API All props are optional. Name Type Default value :---- :---------------------------------------------------------- :------","default_branch":null,"files":null,"tree":[],"storefront":"/r/carbon-design-system","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/carbon-design-system/carbon-icons-svelte/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}