Skip to content

Latest commit

 

History

History
53 lines (38 loc) · 1.37 KB

README.md

File metadata and controls

53 lines (38 loc) · 1.37 KB

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 © [email protected]