@dnb/eufemia
Version:
DNB Eufemia Design System UI Library
24 lines (23 loc) • 789 B
TypeScript
import React from 'react';
import { SpaceProps } from '../space/Space';
export type Sizes = 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 'auto';
type MediaSizes = {
xsmall?: Sizes;
small?: Sizes;
medium?: Sizes;
large?: Sizes;
};
export type Size = MediaSizes | Sizes;
export type BasicProps = {
grow?: boolean;
shrink?: boolean;
alignSelf?: 'flex-start' | 'flex-end' | 'center' | 'baseline' | 'stretch';
size?: Size;
innerRef?: React.RefObject<HTMLElement>;
};
export type Props = BasicProps & SpaceProps & Omit<React.HTMLProps<HTMLElement>, 'ref' | 'wrap' | 'size'>;
declare function FlexItem(props: Props): import("react/jsx-runtime").JSX.Element;
declare namespace FlexItem {
var _supportsSpacingProps: boolean;
}
export default FlexItem;