@material-ui/core
Version:
React components that implement Google's Material Design.
16 lines (11 loc) • 554 B
TypeScript
import * as React from 'react';
import { StandardProps } from '../';
export function cloneChildrenWithClassName<T>(children: React.ReactNode, className: string): T[];
type NamedMuiComponent = React.ComponentType<{}> & { muiName: string };
interface NamedMuiElement {
type: NamedMuiComponent;
props: StandardProps<{}, never>;
key: string | number | null;
}
export function isMuiElement(element: any, muiNames: string[]): element is NamedMuiElement;
export function isMuiComponent(element: any, muiNames: string[]): element is NamedMuiComponent;