@devlander/styled-components-theme
Version:
Devlander's team utilizes this package during the development of their React Native projects. Its primary purpose is to facilitate code reuse by sharing types across multiple projects that uses the styled-components library.
32 lines (31 loc) • 940 B
TypeScript
import { WebTheme } from '../../shared/types/base-theme-types';
import type React from 'react';
export interface HtmlSpanInterface extends Partial<React.HTMLProps<HTMLSpanElement>> {
fontSize?: number;
color?: string;
maxLineHeight?: number;
marginTop?: number;
boxShadowX?: number | string;
boxShadowY?: number | string;
boxShadowBlurRadius?: number | string;
paddingLeft?: number;
paddingRight?: number;
maxFontSizeMultiplier?: number;
marginBottom?: number;
marginLeft?: number;
marginRight?: number;
opacity?: number;
lineHeight?: number;
letterSpacing?: number;
flex?: number;
width?: number;
paddingTop?: number;
paddingBottom?: number;
error?: boolean;
fontFamily?: string;
textAlign?: 'auto' | 'left' | 'right' | 'center' | 'justify';
maxFontSize?: number;
maxWidth?: number;
children?: React.ReactNode;
theme?: WebTheme;
}