Security News
Weekly Downloads Now Available in npm Package Search Results
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
Simple floating action buttons for Angular >= 2
npm install --save ngx-fab
...
import { NgxFabModule } from 'ngx-fab';
@NgModule({
...
imports: [
...
NgxFabModule
],
...
})
type FabSize = 'small' | 'medium' | 'large'
type FabPosition = 'top-left' | 'top-middle' | 'top-right' | 'middle-left' | 'middle-middle' | 'middle-right' | 'bottom-left' | 'bottom-middle' | 'bottom-right'
@Input()
options:backgroundColor
[string] - HTML color name or hexcode for background color (defaults to 'crimson')fabSize
[FabSize] - fab size, 40, 60 or 100px respectively (defaults to 'medium')iconClass
[string] - font awesome icon classes from 'fa', 'fab', 'far' or 'fas' collections (defaults to 'fa fa-plus')iconColor
[string] - HTML color name or hexcode for icon color (defaults to 'black' or 'white' depending on backgroundColor
)position
[FabPosition] - position of fab within container (defaults to 'bottom-right')additionalX
[float] - additional positive or negative offset on the x-axis used for custom positioning (defaults to 0)additionalY
[float] - additional positive or negative offset on the y-axis used for custom positioning (defaults to 0)<ngx-fab></ngx-fab>
<ngx-fab [backgroundColor]="'#88B04B'" [iconClass]="'fas fa-atom'" [position]="'top-middle'"></ngx-fab>
<ngx-fab [backgroundColor]="'yellow'" [iconClass]="'fas fa-plus'" [iconColor]="'#ff00ff'"></ngx-fab>
<ngx-fab [backgroundColor]="'crimson'" [iconClass]="'fas fa-star'" [fabSize]="'small'"></ngx-fab>
<ngx-fab [backgroundColor]="'crimson'" [iconClass]="'fas fa-star'" [fabSize]="'large'"></ngx-fab>
additionalX
to form a row of 3<ngx-fab [iconClass]="'fas fa-star'" [position]="'middle-middle'" [fabSize]="'small'" [additionalX]="-50"></ngx-fab>
<ngx-fab [iconClass]="'fas fa-star'" [position]="'middle-middle'" [fabSize]="'small'"></ngx-fab>
<ngx-fab [iconClass]="'fas fa-star'" [position]="'middle-middle'" [fabSize]="'small'" [additionalX]="50"></ngx-fab>
1.0.0 (15/08/2018)
FAQs
Simple floating action buttons for Angular >= 2
The npm package ngx-fab receives a total of 2 weekly downloads. As such, ngx-fab popularity was classified as not popular.
We found that ngx-fab demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
Security News
A Stanford study reveals 9.5% of engineers contribute almost nothing, costing tech $90B annually, with remote work fueling the rise of "ghost engineers."
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.