A general purpose component that converts our props into styles defined by the user. Heavily inspired by (and somewhat directly copied) from rebass.
set align-items property *
type: string
Background color *
type: string
set flex-direction to column *
type: bool
flex property *
type: number
set justify-content property *
type: string
Margin *
type: enum(0|1|2|3|4)
Margin bottom *
type: enum(0|1|2|3|4)
Margin left *
type: enum(0|1|2|3|4)
Margin right *
type: enum(0|1|2|3|4)
Margin top *
type: enum(0|1|2|3|4)
Margin x-axis *
type: enum(0|1|2|3|4)
Margin y-asix *
type: enum(0|1|2|3|4)
Padding *
type: enum(0|1|2|3|4)
Padding bottom *
type: enum(0|1|2|3|4)
Padding left *
type: enum(0|1|2|3|4)
Padding right *
type: enum(0|1|2|3|4)
Padding top *
type: enum(0|1|2|3|4)
Padding x-axis *
type: enum(0|1|2|3|4)
Padding y-axis *
type: enum(0|1|2|3|4)
Border radius *
type: union(bool|number)
set flex-direction to row *
type: bool
flex-wrap property *
type: bool