@jimengio/flex-styles
TypeScript icon, indicating that this package has built-in type declarations

0.2.0 • Public • Published

Flex styles

通用样式

Usage

yarn add @jimengio/flex-styles

Layout styles:

// layout styles

center;
column;
columnParted;
expand;
flex; // alias for expand, same
fullscreen;
noShrink;
row;
rowCenter;
rowMiddle;
rowParted;

// preset styles

absCenter;
absLeftCenter;
absRightCenter;
absRightTop;
alignItemBottom;
alignItemCenter;
displayFlex;
flexWrap;
fullHeight;
inlineBlock;
inlineRow;
inlineRowMiddle;
maxHeight80vh;
middleSection;
minHeight;
relative;
verticalAlignBottom;
xHiddenYAuto;

Also a Space component for fixing layout:

import { Space } from "@jimengio/flex-styles"

<Space width={8} />

// or
<Space height={8} />

License

MIT

Readme

Keywords

none

Package Sidebar

Install

npm i @jimengio/flex-styles

Weekly Downloads

4

Version

0.2.0

License

MIT

Unpacked Size

11.6 kB

Total Files

14

Last publish

Collaborators

  • imzshh
  • jiyinyiyong
  • rebirth