@mantine/core
Version:
React components library focused on usability, accessibility and developer experience
17 lines (14 loc) • 482 B
JavaScript
'use client';
;
const headings = ["h1", "h2", "h3", "h4", "h5", "h6"];
function lineHeightResolver(value, theme) {
if (typeof value === "string" && value in theme.lineHeights) {
return `var(--mantine-line-height-${value})`;
}
if (typeof value === "string" && headings.includes(value)) {
return `var(--mantine-${value}-line-height)`;
}
return value;
}
exports.lineHeightResolver = lineHeightResolver;
//# sourceMappingURL=line-height-resolver.cjs.map