UNPKG

@radix-ui/themes

Version:

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

3 lines (2 loc) 537 B
import*as e from"react";import x from"classnames";import{Slot as i}from"@radix-ui/react-slot";import{textPropDefs as T}from"./text.props.js";import{extractProps as l}from"../helpers/index.js";import{marginPropDefs as f}from"../props/index.js";const t=e.forwardRef((p,r)=>{const{children:o,className:s,asChild:m,as:a="span",color:P,...n}=l(p,T,f);return e.createElement(i,{"data-accent-color":P,...n,ref:r,className:x("rt-Text",s)},m?o:e.createElement(a,null,o))});t.displayName="Text";export{t as Text}; //# sourceMappingURL=text.js.map