UNPKG

@mantine/core

Version:

React components library focused on usability, accessibility and developer experience

15 lines (13 loc) 449 B
'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; } export { lineHeightResolver }; //# sourceMappingURL=line-height-resolver.mjs.map