UNPKG

@catho/react-floating-badge

Version:

Floating badge with actions for React

44 lines (31 loc) 948 B
# @catho/react-floating-badge > Floating badge with actions for React [![NPM](https://img.shields.io/npm/v/@catho/react-floating-badge.svg)](https://www.npmjs.com/package/@catho/react-floating-badge) [![JavaScript Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://standardjs.com) ## Install ```bash npm install --save @catho/react-floating-badge ``` ## Usage ```tsx import React, { Component } from 'react' import FloatingBadge from '@catho/react-floating-badge' class Example extends Component { render() { return <FloatingBadge placeholder="👏" title="98%" description="complete" bgColor="red" fontColor = 'white' height={50} margin={5} loading={false} position="bottom-right" /> } } ``` ## Example See more at the [GitHub Page](https://catho.github.io/react-floating-badge/) ## License MIT © [catho](https://github.com/catho)