UNPKG

@cfxjs/react-ui

Version:

Modern and minimalist React UI library.

30 lines (29 loc) 1.1 kB
import React from 'react'; import { Justify, Direction, AlignItems, AlignContent } from './grid-types'; declare type BreakpointsValue = number | boolean; interface Props { xs?: BreakpointsValue; sm?: BreakpointsValue; md?: BreakpointsValue; lg?: BreakpointsValue; xl?: BreakpointsValue; justify?: Justify; direction?: Direction; alignItems?: AlignItems; alignContent?: AlignContent; className?: string; } declare const defaultProps: { xs: number | boolean; sm: number | boolean; md: number | boolean; lg: number | boolean; xl: number | boolean; className: string; }; declare type NativeAttrs = Omit<React.HTMLAttributes<any>, keyof Props>; export declare type GridBasicItemProps = Props & typeof defaultProps & NativeAttrs; declare type MemoBasicItemComponent<P = {}> = React.NamedExoticComponent<P>; export declare type GridBasicItemComponentProps = Partial<typeof defaultProps> & Omit<Props, keyof typeof defaultProps> & NativeAttrs; declare const _default: MemoBasicItemComponent<GridBasicItemComponentProps>; export default _default;