parent
ff2ad16290
commit
bfcb0bfd2d
3 changed files with 44 additions and 5 deletions
@ -0,0 +1,31 @@ |
||||
import React from "react"; |
||||
|
||||
const CircleInCircle = ({ |
||||
parentWidth, |
||||
parentHeight, |
||||
chidlWidth, |
||||
chidlHeight, |
||||
parentBg, |
||||
childBg, |
||||
}) => { |
||||
return ( |
||||
<div |
||||
className={` ${parentBg} ${parentWidth} ${parentHeight} rounded-full relative `} |
||||
> |
||||
<div |
||||
className={`${childBg} ${chidlWidth} ${chidlHeight} rounded-full absolute left-1/2 bottom-1/2 transform -translate-x-1/2 translate-y-1/2`} |
||||
></div> |
||||
</div> |
||||
); |
||||
}; |
||||
|
||||
export default CircleInCircle; |
||||
|
||||
CircleInCircle.defaultProps = { |
||||
parentWidth: "w-5", |
||||
parentHeight: "h-5", |
||||
chidlWidth: "w-2", |
||||
chidlHeight: "h-2", |
||||
parentBg: "bg-red-200", |
||||
childBg: "bg-red-600", |
||||
}; |
Loading…
Reference in new issue