Browse Source

Fix Row gutter type

pull/10507/head
Wei Zhu 7 years ago
parent
commit
b7d508e166
  1. 11
      components/grid/row.tsx

11
components/grid/row.tsx

@ -22,17 +22,10 @@ import classNames from 'classnames';
import PropTypes from 'prop-types';
export type Breakpoint = 'xxl' | 'xl' | 'lg' | 'md' | 'sm' | 'xs';
export type BreakpointMap = {
xs?: string;
sm?: string;
md?: string;
lg?: string;
xl?: string;
xxl?: string
};
export type BreakpointMap = Partial<Record<Breakpoint, string>>;
export interface RowProps extends React.HTMLAttributes<HTMLDivElement> {
gutter?: number | BreakpointMap;
gutter?: number | Partial<Record<Breakpoint, number>>;
type?: 'flex';
align?: 'top' | 'middle' | 'bottom';
justify?: 'start' | 'end' | 'center' | 'space-around' | 'space-between';

Loading…
Cancel
Save