@joster-dev/icon
v0.3.1
Published
SVG icons with gradients
Downloads
48
Readme
icon
icon is an Angular library with dynamic components that contain scalable vector graphics
getting started
update your package.json
npm install @joster-dev/icon --saveimport the standalone components where you use them
+ import { IconComponent, IconStackComponent } from '@joster-dev/icon';
@Component({
imports: [
+ IconComponent,
+ IconStackComponent
],
})icon component
fill input expects string | string[] | null defaults to null
- for body color
- when
string[]- vertical gradient left to right
- when
'current'- uses
currentColor
- uses
fillRotate input expects boolean defaults to false
- for rotate
fillby 90° - useful when
fillisstring[]
fillOpacity input expects number defaults to 0
- for
filltransparency 1is solid color0is transparent
stroke input expects string | string[] | null defaults to null
- for outline color
- when
string[]- vertical gradient left to right
- when
null- uses
currentColor
- uses
strokeRotate input expects boolean defaults to false
- for rotate stroke by 90°
size input expects <length> | <percentage> defaults to '100%'
- for scaling width and height
spininput expects'x' | 'y' | 'z'- for linear rotation animation
type input expects string
- for icon selection
icon-stack component
- for containing multiple
iconwhich will appear on top of one another
size input expects <length> | <percentage> defaults to '100%'
- for scaling width and height of all contained
icon
