@joster-dev/icon
v0.2.0
Published
SVG icons with gradients
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 module
+ import { IconModule } from '@joster-dev/icon';
@NgModule({
imports: [
+ IconModule
],
})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
