Carbon Design System SVG icons as Svelte components
Features
@carbon/icons
to v11.10.0 (net +4 icons)Features
@carbon/icons
to v11.8.0 (net +59 icons)Features
@carbon/icons
to v11.6.0 (net +1 icon)Features
@carbon/icons
to v11.3.0 (net +16 icons)Fixes
lib/index.js
Breaking Changes
lib
folder (e.g., carbon-icons-svelte/lib/Add.svelte
)size
prop (16 | 20 | 24 | 32
); the default size is 16
Import icons from the lib
folder.
- import Add16 from "carbon-icons-svelte/lib/Add16";
+ import Add from "carbon-icons-svelte/lib/Add.svelte";
Specify the icon size using the size
prop.
- <Add20 />
+ <Add size={20} />
Fixes
CarbonIcon
interface should not extend svg attributes or include fill, stroke, width, height propsCarbonIconProps
Features
@carbon/icons
to v10.48.0 (net +144 icons)Fixes
Add16.svelte.d.ts
)Fixes
type="module"
in package.json