0.3.6 • Published 3 years ago

@demetra/user-badge v0.3.6

Weekly downloads
-
License
MIT
Repository
gitlab
Last release
3 years ago

UserBadge

UserBadge is an Angular component which can be used to display user information in a easy way.

Demo

Installation

npm i @demetra/user-badge

Usage

Once @demetra/user-badge is installed, your're ready to use it in your application.

Import UserBadgeModule into your application (ex. app.module.ts):

import { UserBadgeModule } from '@demetra/user-badge';

// add it to your module imports
@NgModule({
  imports: [
    UserBadgeModule
  ]
})
export class AppModule {}

Then use it in your templates:

<user-badge name="John Doe"></user-badge>

You can also specify a custom content for user badge popup:

<user-badge name="John Doe">This is a <strong>custom HTML</strong> popover content!</user-badge>

The component supports the following attributes:

AttributeTypeDescription
namestringSpecify the name of the user for which to generate the badge (default: '')
show-namebooleanEnable/Disable user name visualization (default: true)
no-borderbooleanEnable/Disable borders for <user-badge> component (default: false)
shadowbooleanEnable/Disable shadow for <user-badge> component (default: true)
bgColorstringSpecify a custom background color (default: #ffffff)
textColorstringSpecify a custom text color (default: #333333)
outlineColorstringSpecify a custom avatar outline color (default: #eeeeee)
borderColorstringSpecify a custom border color (default: #eeeeee)
popoverBgColorstringSpecify a custom popover background color (default: #ffffff)
popoverBorderColorstringSpecify a custom popover border color (default: #eeeeee)
0.3.0

3 years ago

0.3.6

3 years ago

0.2.7

3 years ago

0.3.5

3 years ago

0.2.6

3 years ago

0.2.8

3 years ago

0.3.2

3 years ago

0.3.1

3 years ago

0.3.4

3 years ago

0.3.3

3 years ago

0.2.5

3 years ago

0.2.4

3 years ago

0.2.3

3 years ago

0.2.2

3 years ago

0.2.1

3 years ago

0.2.0

3 years ago