UNPKG

rmwc

Version:

A thin React wrapper for Material Design (Web) Components

86 lines (85 loc) 3.48 kB
import { SimpleTagPropsT } from '../Base'; import * as React from 'react'; declare type FormFieldRootPropsT = { /** Position the input after the label. */ alignEnd?: boolean; } & SimpleTagPropsT; export declare const FormFieldRoot: React.ComponentType<FormFieldRootPropsT>; declare const FormField_base: { new <P>(props: P & { tag?: string | React.ComponentClass<any> | React.StatelessComponent<any> | undefined; className?: string | undefined; wrap?: boolean | undefined; elementRef?: any; theme?: string | string[] | undefined; children?: React.ReactNode; apiRef?: (<S>(api: S) => S) | undefined; } & React.HTMLProps<any>): { foundation_: { [key: string]: any; adapter_: any; init: Function; destroy: Function; } | null; foundationRefs: { [name: string]: (ref: HTMLElement) => any; }; root_: Element | Text | null; props: P & { tag?: string | React.ComponentClass<any> | React.StatelessComponent<any> | undefined; className?: string | undefined; wrap?: boolean | undefined; elementRef?: any; theme?: string | string[] | undefined; children?: React.ReactNode; apiRef?: (<S>(api: S) => S) | undefined; } & React.HTMLProps<any>; componentDidMount(): void; componentWillReceiveProps(nextProps: P & { tag?: string | React.ComponentClass<any> | React.StatelessComponent<any> | undefined; className?: string | undefined; wrap?: boolean | undefined; elementRef?: any; theme?: string | string[] | undefined; children?: React.ReactNode; apiRef?: (<S>(api: S) => S) | undefined; } & React.HTMLProps<any>): void; componentWillUnmount(): void; _safeSyncWithProps(props: Object): void; initFoundation(): void; destroyComponent(): void; syncWithProps(nextProps: Object): void; initialize(...args: any[]): void; initialSyncWithDOM(): void; destroy(): void; getDefaultFoundation(): { adapter_: {}; init: () => void; destroy: () => void; }; emit(evtType: string, evtData: Object, shouldBubble?: boolean): any; listen(evtType: string, handler: Function): void; unlisten(evtType: string, handler: Function): void; setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: P & { tag?: string | React.ComponentClass<any> | React.StatelessComponent<any> | undefined; className?: string | undefined; wrap?: boolean | undefined; elementRef?: any; theme?: string | string[] | undefined; children?: React.ReactNode; apiRef?: (<S>(api: S) => S) | undefined; } & React.HTMLProps<any>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void; forceUpdate(callBack?: (() => void) | undefined): void; render(): React.ReactNode; state: Readonly<{}>; context: any; refs: { [key: string]: React.ReactInstance; }; }; }; export declare class FormField extends FormField_base<FormFieldRootPropsT> { static displayName: string; render(): JSX.Element; } export default FormField;