@unicity/design-system
Version:
A comprehensive React component library built on Material-UI with advanced theming capabilities including neumorphism design support
41 lines • 1.31 kB
TypeScript
import React from 'react';
import { TypographyProps as MuiTypographyProps } from '@mui/material';
type MuiVariant = MuiTypographyProps['variant'];
type CustomVariant = 'display1' | 'display2' | 'display3' | 'display4';
export interface TypographyProps extends Omit<MuiTypographyProps, 'variant'> {
/**
* The variant of the typography
*/
variant?: MuiVariant | CustomVariant;
/**
* The color of the text
*/
color?: 'primary' | 'secondary' | 'textPrimary' | 'textSecondary' | 'error' | 'warning' | 'info' | 'success' | 'inherit' | 'white' | 'black';
/**
* Whether the text should be truncated with ellipsis
*/
truncate?: boolean;
/**
* Number of lines to show before truncating (for multi-line truncation)
*/
lines?: number;
/**
* Whether to apply gradient text effect
*/
gradient?: boolean;
/**
* Custom gradient colors (only applies when gradient is true)
*/
gradientColors?: [string, string];
/**
* Whether to apply text shadow effect
*/
textShadow?: boolean;
/**
* Custom text shadow (only applies when textShadow is true)
*/
shadowColor?: string;
}
export declare const Typography: React.FC<TypographyProps>;
export {};
//# sourceMappingURL=Typography.d.ts.map