@catho/react-floating-badge
Version:
Floating badge with actions for React
44 lines (31 loc) • 948 B
Markdown
# @catho/react-floating-badge
> Floating badge with actions for React
[](https://www.npmjs.com/package/@catho/react-floating-badge) [](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)