react-flexable
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

@eigen/flex

Flex布局组件

Usage

import { Flex } from '@eigen/flex';
<Flex align="center" valign="middle">Text</Flex>

Interface

interface FlexProps extends React.HTMLAttributes<HTMLElement> {
  span?: number;
  direction?: 'row' | 'row-reverse' | 'column' | 'column-reverse';
  wrap?: 'nowrap' | 'wrap' | 'wrap-reverse';
  align?: 'left' | 'right' | 'center' | 'between' | 'around';
  valign?: 'top' | 'middle' | 'bottom' | 'stretch' | 'baseline';
  alignContent?: 'start' | 'end' | 'center' | 'between' | 'around' | 'stretch';
  blocked?: boolean;
  fulled?: boolean;
  scroll?: 'x' | 'y' | 'both' | 'hide';
}

Readme

Keywords

Package Sidebar

Install

npm i react-flexable

Weekly Downloads

2

Version

1.0.1

License

MIT

Unpacked Size

7.35 kB

Total Files

5

Last publish

Collaborators

  • evio