parent
cf648924cf
commit
d73e08f8f6
4 changed files with 17 additions and 7 deletions
@ -0,0 +1,9 @@ |
|||||||
|
export function BadgeLink({ target='_blank', variant ='primary', badgeText, href, children }) { |
||||||
|
return ( |
||||||
|
<p className='mb-0'> |
||||||
|
<a href={href} target={ target }> |
||||||
|
<span style={{ position: 'relative', top: '-2px'}} className={`badge badge-${variant}`}>{badgeText}</span> { children } |
||||||
|
</a> |
||||||
|
</p> |
||||||
|
); |
||||||
|
} |
Loading…
Reference in new issue