2.0.0 • Published 3 years ago

@allthings/react-view v2.0.0

Weekly downloads
274
License
MIT
Repository
github
Last release
3 years ago

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>
)
2.0.0

3 years ago

1.4.0

7 years ago

1.3.0

7 years ago

1.2.0

7 years ago

1.1.0

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago