UNPKG

@indoqa/style-system

Version:

A style system for React with Typescript typed theme support and several base components.

19 lines (18 loc) 764 B
import * as React from 'react'; import { BaseTheme } from '../../theming/baseTheme'; import { FontProps, PaddingProps, ResponsiveProps, StylingProps, WithStyle } from '../types'; declare type SizeValue = 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12; export declare type Size = SizeValue | SizeValue[]; interface Props<T extends BaseTheme> extends WithStyle<T>, ResponsiveProps<PaddingProps>, ResponsiveProps<StylingProps<T>>, ResponsiveProps<FontProps<T>> { size?: Size; testId?: string; innerRef?: React.RefObject<HTMLDivElement>; } export declare const GRID_SIZE: Size; export declare class Col<T extends BaseTheme> extends React.Component<Props<T>> { static defaultProps: { size: Size; }; render(): JSX.Element; } export {};