UNPKG

@radix-ui/themes

Version:

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

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