0.0.5 • Published 5 years ago
renta-ng-lib v0.0.5
Renta Solutions Angular Component Library
A work in progress library of Angular component used by Renta Solutions.
How to install to an Angular project
Install with NPM:
npm install renta-ng-lib
After installing; import and add the module to your app.module.ts
file, under imports
:
/* ... */
import { RentaNgLibModule } from 'renta-ng-lib';
@NgModule({
declarations: [/* ... */],
imports: [
/* ... */,
RentaNgLibModule,
],
providers: [/* ... */],
bootstrap: [AppComponent]
})
export class AppModule { }
Components
Button
<renta-button
[disabled]="false"
[color]="'blue'"
(click)="doSomething()"
>Click here</renta-button>
Avatar
<renta-avatar
[initials]="'OK'"
[backgroundColor]="'blue'"
[textColor]="'white'"
></renta-avatar>