@trussworks/react-uswds
Version:
React USWDS 3.0 component library
17 lines (16 loc) • 797 B
TypeScript
import { default as React } from 'react';
import { ContainerSizes } from '../types';
type GridContainerProps = {
containerSize?: ContainerSizes;
className?: string;
children: React.ReactNode;
};
interface WithCustomGridContainerProps<T> {
asCustom: React.FunctionComponent<T>;
}
export type DefaultGridContainerProps = GridContainerProps;
export type CustomGridContainerProps<T> = GridContainerProps & WithCustomGridContainerProps<T>;
export declare function isCustomProps<T>(props: DefaultGridContainerProps | CustomGridContainerProps<T>): props is CustomGridContainerProps<T>;
export declare function GridContainer(props: DefaultGridContainerProps): React.ReactElement;
export declare function GridContainer<T>(props: CustomGridContainerProps<T>): React.ReactElement;
export {};