1.2.1 • Published 2 years ago

reactars v1.2.1

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

Reactars

A React lib to generate easily customizable avatars

GitHub npm npm type definitions

Installation

Using Yarn

yarn add reactars

Using Npm

npm i reactars

Usage

Importing

You can import reactars component as default and use all modes

import Reactars from 'reactars'

or import separately each one

import { ReactarsNotification, ReactarsStatus, ReactarsDefault } from 'reactars'

Examples

Usage Examples

<Reactars badgeType="status" name="pmqueiroz" status="online" />

<Reactars badgeType="notification" name="pmqueiroz" count={3} />

Parameters

ParameterRequiredDefaultType
badgeTypeyes"none""none", "notification", "status"
nameyes"Reactars"string
badgePositionno"top-right""top-left", "top-right", "bottom-right", "bottom-left"
badgeColornoBadgeColorsDefaultsBadgeColorsDefaults
radiino"circle""circle", "square", "rounded"
urlnoundefinedstring
backgroundColorno"#2A2C2C"CSSProperties['color']
sizeno48px
badgeOffsetno0number
statusif type "status""online""online", "busy", "offline", "idle"
countif type "notification"undefinednumber
notificationTextColorif type "notification""#FFFFFF"CSSProperties['color']

Obs.: Size will be converted to rem in base16

BadgeColorsDefaults

{
   notification: '#E65A4D',
   busy: '#E65A4D',
   idle: '#F7C656',
   offline: '#CCCCCC',
   online: '#50CA42'
}

License

MIT

1.2.1

2 years ago

1.2.0

2 years ago

1.1.0

2 years ago

1.0.0

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago