Socket
Socket
Sign inDemoInstall

reflexion

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

reflexion

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


Version published
Maintainers
1
Created
Source

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.

FAQs

Package last updated on 12 Apr 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc