UNPKG

renta-ng-lib

Version:

Renta Solutions Angular Component Library

51 lines (39 loc) 934 B
# Renta Solutions Angular Component Library A **work in progress** library of Angular component used by [Renta Solutions](https://www.rentasolutions.org/en). ## How to install to an Angular project Install with NPM: ```shell npm install renta-ng-lib ``` After installing; import and add the module to your `app.module.ts` file, under `imports`: ```typescript /* ... */ import { RentaNgLibModule } from 'renta-ng-lib'; @NgModule({ declarations: [/* ... */], imports: [ /* ... */, RentaNgLibModule, ], providers: [/* ... */], bootstrap: [AppComponent] }) export class AppModule { } ``` ## Components ### Button ```html <renta-button [disabled]="false" [color]="'blue'" (click)="doSomething()" >Click here</renta-button> ``` ### Avatar ```html <renta-avatar [initials]="'OK'" [backgroundColor]="'blue'" [textColor]="'white'" ></renta-avatar> ```