UNPKG

@lanaco/lnc-react-ui

Version:

React component library

16 lines (14 loc) 949 B
"use strict";const m=require("react/jsx-runtime"),u=require("react"),h=require("./emotion-styled.browser.esm-DwHBgTPn.cjs"),t=require("./utils-BK6B_Y9X.cjs"),d=require("./emotion-element-f0de968e.browser.esm-B7k6i6lC.cjs"),g=h.styled.a` ${e=>t.getComponentTypographyCss(e.theme,"Breadcrumbs",e.size,"enabled")}; color: ${e=>t.getColorRgbaValue(e.theme,"Link",e.color,"enabled","text")}; text-decoration: none; &:hover { color: ${e=>t.getColorRgbaValue(e.theme,"Link",e.color,"hover","text")}; } &:active { color: ${e=>t.getColorRgbaValue(e.theme,"Link",e.color,"active","text")}; } &:visited { color: ${e=>t.getColorRgbaValue(e.theme,"Link",e.color,"visited","text")}; } `,b=u.forwardRef((e,o)=>{const{className:r="",style:l={},color:s="primary",size:n="small",children:c,...i}=e,a={theme:d.useTheme(),size:n,color:s,className:"lnc-ui-link "+r,style:l};return m.jsx(g,{ref:o,...a,...i,children:c})});module.exports=b;