1.0.0 • Published 5 years ago
@idui/react-badge v1.0.0
Badge React Component
Install
npm install --save @idui/react-badgeyarn add @idui/react-badgeSee 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
1.0.0
5 years ago