Skip to content

💎 React component to build layouts based on the CSS Flexbox model.

Notifications You must be signed in to change notification settings

tachyon-ops/reflexion

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

Installation

Install with the Node Package Manager:

npm install reflexion

Documentation

Documentation is generated here.

About

💎 React component to build layouts based on the CSS Flexbox model.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 58.5%
  • JavaScript 33.5%
  • CSS 6.3%
  • HTML 1.7%