0.1.1 • Published 10 months ago
@joster-dev/icon v0.1.1
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 --save
import 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
fill
by 90° - useful when
fill
isstring[]
fillOpacity
input expects number
defaults to 0
- for
fill
transparency 1
is solid color0
is 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
spin
input expects'x' | 'y' | 'z'
- for linear rotation animation
type
input expects string
- for icon selection
icon-stack
component
- for containing multiple
icon
which will appear on top of one another
size
input expects <length> | <percentage>
defaults to '100%'
- for scaling width and height of all contained
icon