@idui/react-badge

React Badge Component

Usage no npm install needed!

<script type="module">
  import iduiReactBadge from 'https://cdn.skypack.dev/@idui/react-badge';
</script>

README

Badge React Component

NPM Size JavaScript Style Guide LICENSE

Install

npm install --save @idui/react-badge
yarn add @idui/react-badge

See props in Docs

Basic Example

import React from 'react'
import Badge from '@idui/react-badge'

function Example() {
  return <BadgeWrapper>
      <Badge 
          color="orangered" 
          size="1.5rem"
      />
  </BadgeWrapper>
}

const BadgeWrapper = styled.div`
  position: relative;
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  background-color: skyblue;
`;

See more details in storybook

License

MIT © kaprisa57@gmail.com