UNPKG

@radix-ui/themes

Version:

[![Radix Themes Logo](https://radix-ui.com/social/themes.png)](https://radix-ui.com/themes)

3 lines (2 loc) 535 B
import*as e from"react";import n from"classnames";import{Slot as i}from"@radix-ui/react-slot";import{badgePropDefs as f}from"./badge.props.js";import{extractProps as P}from"../helpers/index.js";import{marginPropDefs as g}from"../props/index.js";const o=e.forwardRef((r,p)=>{const{asChild:t,className:s,color:a,radius:m,...d}=P(r,f,g);return e.createElement(t?i:"span",{"data-accent-color":a,"data-radius":m,...d,ref:p,className:n("rt-reset","rt-Badge",s)})});o.displayName="Badge";export{o as Badge}; //# sourceMappingURL=badge.js.map