1 | import * as React from 'react';
|
2 | import type { Breakpoint } from '../_util/responsiveObserver';
|
3 | declare const RowAligns: readonly ["top", "middle", "bottom", "stretch"];
|
4 | declare const RowJustify: readonly ["start", "end", "center", "space-around", "space-between", "space-evenly"];
|
5 | type Responsive = 'xxl' | 'xl' | 'lg' | 'md' | 'sm' | 'xs';
|
6 | type ResponsiveLike<T> = {
|
7 | [key in Responsive]?: T;
|
8 | };
|
9 | export type Gutter = number | undefined | Partial<Record<Breakpoint, number>>;
|
10 | type ResponsiveAligns = ResponsiveLike<(typeof RowAligns)[number]>;
|
11 | type ResponsiveJustify = ResponsiveLike<(typeof RowJustify)[number]>;
|
12 | export 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 | }
|
19 | declare const Row: React.ForwardRefExoticComponent<RowProps & React.RefAttributes<HTMLDivElement>>;
|
20 | export default Row;
|