@indoqa/style-system
Version:
A style system for React with Typescript typed theme support and several base components.
23 lines (22 loc) • 880 B
TypeScript
import * as React from 'react';
import { BaseTheme } from '../../theming/baseTheme';
import { BoxModelProps, MarginProps, PaddingProps, ResponsiveProps, StylingProps, WithStyle } from '../types';
interface GridContainerStyleProps<T extends BaseTheme> extends WithStyle<T>, ResponsiveProps<PaddingProps>, StylingProps<T>, ResponsiveProps<BoxModelProps>, ResponsiveProps<MarginProps> {
children?: React.ReactNode;
maxWidth?: number | string;
center?: boolean;
testId?: string;
innerRef?: React.RefObject<HTMLDivElement>;
}
interface Props<T extends BaseTheme> extends GridContainerStyleProps<T> {
spacing: string | number;
}
export declare class Grid<T extends BaseTheme> extends React.Component<Props<T>> {
static defaultProps: {
maxWidth: string;
center: boolean;
spacing: number;
};
render(): JSX.Element;
}
export {};