UNPKG

@while-and-for/tremor-react

Version:

The React library to build dashboards faster.

2 lines (1 loc) 676 B
"use strict";var e=require("tslib"),t=require("react"),r=require("../../../lib/theme.cjs"),s=require("../../../lib/utils.cjs"),a=require("../../../lib/tremorTwMerge.cjs");function l(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var o=l(t);const i=o.default.forwardRef(((t,l)=>{const{color:i,children:c,className:m}=t,n=e.__rest(t,["color","children","className"]);return o.default.createElement("p",Object.assign({ref:l,className:a.tremorTwMerge("font-medium text-tremor-title",i?s.getColorClassNames(i,r.colorPalette.darkText).textColor:"text-tremor-content-emphasis dark:text-dark-tremor-content-emphasis",m)},n),c)}));i.displayName="Title",module.exports=i;