UNPKG

@tmlmobilidade/emails

Version:
17 lines (16 loc) 759 B
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime"; /* * */ import colors from '../../styles/colors.js'; import { fontSize, fontWeight } from '../../styles/font.js'; /** * Use this component to apply styles to inline text * within other components, such as Paragraph. */ export function Span({ children, color, size, spaceAfter, spaceBefore, weight }) { return (_jsxs(_Fragment, { children: [spaceBefore && ' ', _jsx("span", { style: { color: color ? colors[color].foreground : undefined, fontSize: size ? fontSize[size] : undefined, fontWeight: weight ? fontWeight[weight] : undefined, }, children: children }), spaceAfter && ' '] })); } ;