UNPKG

@while-and-for/tremor-react

Version:

The React library to build dashboards faster.

2 lines (1 loc) 587 B
import{__rest as e}from"tslib";import r from"react";import{colorPalette as t}from"../../../lib/theme.js";import{getColorClassNames as o}from"../../../lib/utils.js";import{tremorTwMerge as m}from"../../../lib/tremorTwMerge.js";const s=r.forwardRef(((s,a)=>{const{color:i,children:l,className:c}=s,n=e(s,["color","children","className"]);return r.createElement("p",Object.assign({ref:a,className:m("font-semibold text-tremor-metric",i?o(i,t.darkText).textColor:"text-tremor-content-emphasis dark:text-dark-tremor-content-emphasis",c)},n),l)}));s.displayName="Metric";export{s as default};