Skip to content

id-ui/react-badge

Repository files navigation

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]

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published