UNPKG

991 BTypeScriptView Raw
1import * as React from 'react';
2import type { Breakpoint } from '../_util/responsiveObserve';
3declare const RowAligns: ["top", "middle", "bottom", "stretch"];
4declare const RowJustify: ["start", "end", "center", "space-around", "space-between", "space-evenly"];
5type Responsive = 'xxl' | 'xl' | 'lg' | 'md' | 'sm' | 'xs';
6type ResponsiveLike<T> = {
7 [key in Responsive]?: T;
8};
9export type Gutter = number | undefined | Partial<Record<Breakpoint, number>>;
10type ResponsiveAligns = ResponsiveLike<typeof RowAligns[number]>;
11type ResponsiveJustify = ResponsiveLike<typeof RowJustify[number]>;
12export interface RowProps extends React.HTMLAttributes<HTMLDivElement> {
13 gutter?: Gutter | [Gutter, Gutter];
14 align?: typeof RowAligns[number] | ResponsiveAligns;
15 justify?: typeof RowJustify[number] | ResponsiveJustify;
16 prefixCls?: string;
17 wrap?: boolean;
18}
19declare const Row: React.ForwardRefExoticComponent<RowProps & React.RefAttributes<HTMLDivElement>>;
20export default Row;