@unicity/design-system
Version:
A comprehensive React component library built on Material-UI with advanced theming capabilities including neumorphism design support
8 lines • 729 B
JavaScript
import { jsx as _jsx } from "react/jsx-runtime";
import { StyledTypography } from './Typography.style';
export const Typography = ({ children, variant = 'body1', color = 'textPrimary', truncate = false, lines, gradient = false, gradientColors, textShadow = false, shadowColor, sx, ...props }) => {
// Handle custom display variants by mapping them to h1 for MUI
const muiVariant = variant?.startsWith('display') ? 'h1' : variant;
return (_jsx(StyledTypography, { variant: muiVariant, color: color, truncate: truncate, lines: lines, gradient: gradient, gradientColors: gradientColors, textShadow: textShadow, shadowColor: shadowColor, sx: sx, ...props, children: children }));
};
//# sourceMappingURL=Typography.js.map