New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More

@allthings/react-view

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@allthings/react-view

A fully flexed View component for React.


Version published
Maintainers
1
Created

react-view

A View component heavily inspired by angular-material's layout.

Install

yarn add @allthings/react-view

Available properties

PropertyTypePossible values
directionstringrow, column
alignHstringnone, start, center, end, space-around, space-between
alignVstringnone, start, center, end, stretch
wrapstringinherit, initial, wrap, nowrap, wrap-reverse
fillbooltrue, false
flexstring/intnone, flex, nogrow, grow, initial, auto, noshrink, 5, 10, 15, 20, 25, 30, 35, 40, 45, 50, 55, 60, 65, 70, 75, 80, 95, 90, 100, 33, 66

Example usage

const styles = {
  background: '#bada55',
  padding: 10
}

const ExampleComponent = props => (
  <View
    direction="row"
    alignH="center"
    alignV="center"
    wrap="wrap"
    style={styles}
  >
    Hello World!
  </View>
)

FAQs

Package last updated on 28 Mar 2017

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