All Projects → akopkesheshyan → ng-person

akopkesheshyan / ng-person

Licence: MIT license
A universal avatar component for Angular 2+ applications that generates truly unique colored letter avatar based on provided name.

Programming Languages

typescript
32286 projects
javascript
184084 projects - #8 most used programming language
CSS
56736 projects
HTML
75241 projects

Projects that are alternatives of or similar to ng-person

boring-avatars
Boring avatars is a tiny JavaScript React library that generates custom, SVG-based avatars from any username and color palette.
Stars: ✭ 3,582 (+18752.63%)
Mutual labels:  avatar, avatar-placeholder
react-nice-avatar
react library for generating avatar
Stars: ✭ 700 (+3584.21%)
Mutual labels:  avatar, avatar-placeholder
identicon-api
A simple API to retrieve SVG identicons
Stars: ✭ 15 (-21.05%)
Mutual labels:  avatar, avatar-placeholder
monsterid
MonsterID adaptation for Composer and modern PHP versions
Stars: ✭ 20 (+5.26%)
Mutual labels:  avatar, avatar-placeholder
mk-letter-avatar
🅰 WordPress 字母头像插件(纯前端实现版) WordPress letter avatar plugin
Stars: ✭ 42 (+121.05%)
Mutual labels:  avatar, letter-avatar
Ngx Avatar
Universal avatar component for angular 2+ applications makes it possible to fetch / generate avatar from different sources
Stars: ✭ 210 (+1005.26%)
Mutual labels:  avatar, angular2
vue-letter-avatar
A simple and elegant letter avatar component for vue.js
Stars: ✭ 62 (+226.32%)
Mutual labels:  avatar, letter-avatar
ng2-3d-editor
3D Viewer and Editor Javascript
Stars: ✭ 15 (-21.05%)
Mutual labels:  angular2
ngx-json-ld
📝 A small component to easily bind JSON-LD schema to Angular templates.
Stars: ✭ 29 (+52.63%)
Mutual labels:  angular2
paper-dashboard-angular
Angular version of the original Paper Dashboard.
Stars: ✭ 142 (+647.37%)
Mutual labels:  angular2
ng2-fontawesome
An easy-to-use directive for font awesome icons.
Stars: ✭ 20 (+5.26%)
Mutual labels:  angular2
ng2-storage
A local and session storage wrapper for angular 2.
Stars: ✭ 14 (-26.32%)
Mutual labels:  angular2
ngx-owl-carousel
An angular2 (4) wrapper for jquery owl-carousel library with dynamic carousel item change detection
Stars: ✭ 71 (+273.68%)
Mutual labels:  angular2
ionic-video-chat-support
Ionic 3 Video and Group Text Chat
Stars: ✭ 19 (+0%)
Mutual labels:  angular2
tcome-frontend
NodeJS&Angular4 BLOG
Stars: ✭ 49 (+157.89%)
Mutual labels:  angular2
AvatarImageGenerator
Android library to generate image avatar from the first letter of a username. Letter avatar like Gmail Android best practice
Stars: ✭ 61 (+221.05%)
Mutual labels:  avatar-placeholder
angular2-select
No description or website provided.
Stars: ✭ 12 (-36.84%)
Mutual labels:  angular2
Angular2-startbootstrap-new-age
Angular 2 version of the Start Bootstrap New Age theme
Stars: ✭ 13 (-31.58%)
Mutual labels:  angular2
ngx-widget-grid
Angular 2.x or in general ng-x module for dashboards
Stars: ✭ 65 (+242.11%)
Mutual labels:  angular2
laravel5Angular4
Laravel 5.4 & Angular 4.3.4
Stars: ✭ 37 (+94.74%)
Mutual labels:  angular2

ng-person

A universal avatar component for Angular 2+ applications that generates truly unique colored letter avatar based on provided name. It also supports user photo, name with subtitle and different styles.

demo

Installation

Install ng-person component using NPM:

$ npm install ng-person --save

Usage

  1. Once you have installed ng-person, you can import it into your AppModule:
import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';

import { AppComponent } from './app.component';
import { NgPersonModule } from 'ng-person';

@NgModule({
  declarations: [
    AppComponent
  ],
  imports: [
    BrowserModule,
    // Specify NgPersonModule as an import 
    NgPersonModule
  ],
  providers: [],
  bootstrap: [AppComponent]
})
export class AppModule { }
  1. Call component from your Angular application:
<ng-person name="Akop Kesheshyan"></ng-person>

Examples

<ng-person name="Akop Kesheshyan" title="Software Developer"></ng-person>

<ng-person picture="https://example.com/pic.jpg" showName="false"></ng-person>

<ng-person name="Akop Kesheshyan" size="large" round="true"></ng-person>

Options

Attribute Type Description
picture string Absolute path to a picture image.
name string Specifies a name to be shown on the right of a user picture.
title string Specifies a title to be shown under the name.
showName boolean Whether to show a user name or not.
round boolean Round corners of the picture box.
size string Size of the component. Possible values: small, medium (default), large, giant.

License

MIT © Akop Kesheshyan

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].