2.2.1 • Published 5 months ago

reflexion v2.2.1

Weekly downloads
7
License
MIT
Repository
github
Last release
5 months ago

Reflexion

šŸ’Ž React component to build layouts based on the CSS Flexbox model.

Features

  • Provides a simple abstraction of the CSS Flexbox model
  • Follows the Figma auto-layout model with similar properties
  • Sets all necessary Flexbox parameters to enable scrolling

Usage

The component is exported from the main entry-point through an ES6 module:

import { Flex } from "reflexion";

The Flex component uses CSS definitions that must be imported in order to work appropriately:

@import "reflexion/dist/main.css";

!NOTE The CSS definitions use the :has pseudo-class, which is not supported on FireFox. To bypass this limitation, when using FireFox, Flex introspects its children with JavaScript code, which can have a slight performance impact.

Quick start

<Flex width="fill" height="fill">
  <Flex direction="vertical" gap={8}>
    <Flex>Toolbar</Flex>
    <Flex direction="vertical" height="fill" scroll>
      Main view
    </Flex>
    <Flex>Footer</Flex>
  </Flex>
</Flex>

Installation

Install with the Node Package Manager:

npm install reflexion

Documentation

Documentation is generated here.

3.0.0-alpha.6

5 months ago

2.2.1

5 months ago

3.0.0-alpha.1

5 months ago

3.0.0-alpha.3

5 months ago

3.0.0-alpha.2

5 months ago

3.0.0-alpha.5

5 months ago

3.0.0-alpha.4

5 months ago

2.3.0-alpha.2

6 months ago

2.3.0-alpha.10

6 months ago

2.3.0-alpha.3

6 months ago

2.3.0-alpha.1

6 months ago

2.3.0-alpha.13

6 months ago

2.3.0-alpha.14

6 months ago

2.3.0-alpha.12

6 months ago

2.3.0-alpha.9

6 months ago

2.3.0-alpha.7

6 months ago

2.3.0-alpha.4

6 months ago

2.3.0-alpha.5

6 months ago

2.1.2

1 year ago

2.2.0

1 year ago

2.1.1

1 year ago

2.1.0

1 year ago

2.0.0

2 years ago

1.2.0

2 years ago

1.1.1

2 years ago

1.3.0

2 years ago

1.1.2

2 years ago

0.1.0

2 years ago

1.1.0

2 years ago

1.0.0

2 years ago

0.1.1

2 years ago

0.0.0

5 years ago