0.0.16 • Published 4 years ago

@mowgli/badge v0.0.16

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

@mowgli/badge

Badge component for React Native apps.

Instalation

npm install @mowgli/badge
yarn add @mowgli/badge

Usage

import Badge from '@mowgli/badge'

render() {
    <Badge text="Sent" accent="primary" size="big" full />
}

Props

Reference

text

Contains the text to display.

TypeDefault
stringempty

color

If you don't like any of the accent colors available you can set a custom background color with the property.

TypeDefault
stringempty

accent

Determines the accent/background color.

TypeDefault
primary, success, info, warning, errorprimary

size

Determines the size of the badge.

TypeDefault
small, medium, largemedium

fullWidth

Determines if the badge should occupy all the available space.

TypeDefault
booleanfalse
0.0.15

4 years ago

0.0.16

4 years ago

0.0.12

4 years ago

0.0.13

4 years ago

0.0.6

4 years ago

0.0.5

4 years ago

0.0.4

4 years ago

0.0.3

4 years ago

0.0.1

4 years ago