{"repo":"carbon-design-system/carbon-pictograms-svelte","free":true,"listed":false,"github":"https://github.com/carbon-design-system/carbon-pictograms-svelte","clone":"git clone https://github.com/carbon-design-system/carbon-pictograms-svelte.git","description":"Carbon Design System SVG pictograms as Svelte components","language":"TypeScript","stars":137,"topics":["svelte","carbon","carbon-design-system","pictograms","svelte-component","svg","typescript-definitions"],"license":"Apache-2.0","category":"ui-components","readme_excerpt":"carbon-pictograms-svelte [![NPM][npm]][npm-url] Carbon Design System SVG pictograms as Svelte components. This zero dependency library builds Carbon Design System pictograms as Svelte components. Although best paired with carbon-components-svelte, this library can be consumed standalone. Try it in the Svelte REPL. Preview · Pictogram Index Installation Usage Direct Import Import the icon from the carbon-pictograms-svelte/lib folder. See the Pictogram Index for a list of supported pictograms. 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 pictograms). 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) API All props are optional. Name Type Default value :---- :------- :------------ title string undefined Custom props $$restProps are forwarded to the svg element. You can use fill to customize the color or pass any other valid svg attribute to the component. Labelled Labelled by Focusable TypeScript This library off","default_branch":null,"files":null,"tree":[],"storefront":"/r/carbon-design-system","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/carbon-design-system/carbon-pictograms-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."}