UNPKG

rmwc

Version:

A thin React wrapper for Material Design (Web) Components

112 lines (111 loc) 4.33 kB
import * as React from 'react'; import { SimpleTagPropsT } from '../Base'; export declare type GridPropsT = { /** Specifies the grid should have fixed column width. */ fixedColumnWidth?: boolean; /** Specifies the alignment of the whole grid. */ align?: 'left' | 'right'; } & SimpleTagPropsT; export declare const GridRoot: { new <P>(props: any, context?: any): { render(): React.ReactElement<any> | null; setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: any) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void; forceUpdate(callBack?: (() => void) | undefined): void; props: Readonly<{ children?: React.ReactNode; }> & Readonly<any>; state: Readonly<{}>; context: any; refs: { [key: string]: React.ReactInstance; }; }; displayName: string; defaultProps: { tag: string | React.ComponentClass<any> | React.StatelessComponent<any>; constructor: Function; toString(): string; toLocaleString(): string; valueOf(): Object; hasOwnProperty(v: string | number | symbol): boolean; isPrototypeOf(v: Object): boolean; propertyIsEnumerable(v: string | number | symbol): boolean; }; isSimpleTag: boolean; }; export declare type GridCellPropsT = { /** Default number of columns to span. */ span?: string | number; /** Number of columns to span on a phone. */ phone?: string | number; /** Number of columns to span on a tablet. */ tablet?: string | number; /** Number of columns to span on a desktop. */ desktop?: string | number; /** Specifies the order of the cell. */ order?: string | number; /** Specifies the alignment of cell */ align?: 'top' | 'middle' | 'bottom'; } & SimpleTagPropsT; declare const GridCell_base: { new <P>(props: any, context?: any): { render(): React.ReactElement<any> | null; setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: any) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void; forceUpdate(callBack?: (() => void) | undefined): void; props: Readonly<{ children?: React.ReactNode; }> & Readonly<any>; state: Readonly<{}>; context: any; refs: { [key: string]: React.ReactInstance; }; }; displayName: string; defaultProps: { tag: string | React.ComponentClass<any> | React.StatelessComponent<any>; constructor: Function; toString(): string; toLocaleString(): string; valueOf(): Object; hasOwnProperty(v: string | number | symbol): boolean; isPrototypeOf(v: Object): boolean; propertyIsEnumerable(v: string | number | symbol): boolean; }; isSimpleTag: boolean; }; /** A Grid cell */ export declare class GridCell extends GridCell_base<GridCellPropsT> { render(): React.ReactElement<any> | null; } /** By default, an inner grid component is included inside of <Grid>. Use GridInner when doing nested Grids. */ export declare const GridInner: { new <P>(props: any, context?: any): { render(): React.ReactElement<any> | null; setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: any) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void; forceUpdate(callBack?: (() => void) | undefined): void; props: Readonly<{ children?: React.ReactNode; }> & Readonly<any>; state: Readonly<{}>; context: any; refs: { [key: string]: React.ReactInstance; }; }; displayName: string; defaultProps: { tag: string | React.ComponentClass<any> | React.StatelessComponent<any>; constructor: Function; toString(): string; toLocaleString(): string; valueOf(): Object; hasOwnProperty(v: string | number | symbol): boolean; isPrototypeOf(v: Object): boolean; propertyIsEnumerable(v: string | number | symbol): boolean; }; isSimpleTag: boolean; }; /** A Grid component */ export declare const Grid: React.ComponentType<GridPropsT>; export {};