Layout Props
This roadmap outlines the necessary Flexbox props to implement for SolidNative, along with their descriptions and type signatures.
Flex Container Props
- [ ] alignContent: Controls the alignment of the lines in a flex container.
- Type:
'flex-start' | 'flex-end' | 'center' | 'stretch' | 'space-between' | 'space-around' | 'space-evenly' | undefined
- Type:
- [ ] alignItems: Aligns flex items along the cross axis.
- Type:
FlexAlignType | undefined
- Type:
- [ ] flexDirection: Defines the main axis direction (row or column).
- Type:
'row' | 'column' | 'row-reverse' | 'column-reverse' | undefined
- Type:
- [ ] flexWrap: Controls whether the flex container is single-line or multi-line.
- Type:
'wrap' | 'nowrap' | 'wrap-reverse' | undefined
- Type:
- [ ] justifyContent: Aligns flex items along the main axis.
- Type:
'flex-start' | 'flex-end' | 'center' | 'space-between' | 'space-around' | 'space-evenly' | undefined
- Type:
Flex Item Props
- [ ] alignSelf: Overrides the
alignItems
value for a specific flex item.- Type:
'auto' | FlexAlignType | undefined
- Type:
- [ ] flex: Shorthand for
flexGrow
,flexShrink
, andflexBasis
.- Type:
number | undefined
- Type:
- [ ] flexBasis: Sets the initial size of a flex item.
- Type:
DimensionValue | undefined
- Type:
- [ ] flexGrow: Defines the ability for a flex item to grow if necessary.
- Type:
number | undefined
- Type:
- [ ] flexShrink: Defines the ability for a flex item to shrink if necessary.
- Type:
number | undefined
- Type:
Sizing Props
- [ ] width: Sets the width of an element.
- Type:
DimensionValue | undefined
- Type:
- [ ] height: Sets the height of an element.
- Type:
DimensionValue | undefined
- Type:
- [ ] maxWidth: Sets the maximum width of an element.
- Type:
DimensionValue | undefined
- Type:
- [ ] maxHeight: Sets the maximum height of an element.
- Type:
DimensionValue | undefined
- Type:
- [ ] minWidth: Sets the minimum width of an element.
- Type:
DimensionValue | undefined
- Type:
- [ ] minHeight: Sets the minimum height of an element.
- Type:
DimensionValue | undefined
- Type:
- [ ] aspectRatio: Defines the aspect ratio for an element.
- Type:
number | string | undefined
- Type:
Margin Props
- [ ] margin: Sets the margin on all sides of an element.
- Type:
DimensionValue | undefined
- Type:
- [ ] marginBottom: Sets the bottom margin of an element.
- Type:
DimensionValue | undefined
- Type:
- [ ] marginEnd: Sets the end margin of an element.
- Type:
DimensionValue | undefined
- Type:
- [ ] marginHorizontal: Sets the horizontal margins of an element.
- Type:
DimensionValue | undefined
- Type:
- [ ] marginLeft: Sets the left margin of an element.
- Type:
DimensionValue | undefined
- Type:
- [ ] marginRight: Sets the right margin of an element.
- Type:
DimensionValue | undefined
- Type:
- [ ] marginStart: Sets the start margin of an element.
- Type:
DimensionValue | undefined
- Type:
- [ ] marginTop: Sets the top margin of an element.
- Type:
DimensionValue | undefined
- Type:
- [ ] marginVertical: Sets the vertical margins of an element.
- Type:
DimensionValue | undefined
- Type:
Padding Props
- [ ] padding: Sets the padding on all sides of an element.
- Type:
DimensionValue | undefined
- Type:
- [ ] paddingBottom: Sets the bottom padding of an element.
- Type:
DimensionValue | undefined
- Type:
- [ ] paddingEnd: Sets the end padding of an element.
- Type:
DimensionValue | undefined
- Type:
- [ ] paddingHorizontal: Sets the horizontal paddings of an element.
- Type:
DimensionValue | undefined
- Type:
- [ ] paddingLeft: Sets the left padding of an element.
- Type:
DimensionValue | undefined
- Type:
- [ ] paddingRight: Sets the right padding of an element.
- Type:
DimensionValue | undefined
- Type:
- [ ] paddingStart: Sets the start padding of an element.
- Type:
DimensionValue | undefined
- Type:
- [ ] paddingTop: Sets the top padding of an element.
- Type:
DimensionValue | undefined
- Type:
- [ ] paddingVertical: Sets the vertical paddings of an element.
- Type:
DimensionValue | undefined
- Type:
Positioning Props
- [ ] position: Sets the position type of an element.
- Type:
'absolute' | 'relative' | 'static' | undefined
- Type:
- [ ] top: Sets the top position of an element.
- Type:
DimensionValue | undefined
- Type:
- [ ] right: Sets the right position of an element.
- Type:
DimensionValue | undefined
- Type:
- [ ] bottom: Sets the bottom position of an element.
- Type:
DimensionValue | undefined
- Type:
- [ ] left: Sets the left position of an element.
- Type:
DimensionValue | undefined
- Type:
- [ ] start: Sets the start position of an element.
- Type:
DimensionValue | undefined
- Type:
- [ ] end: Sets the end position of an element.
- Type:
DimensionValue | undefined
- Type:
Other Props
- [ ] borderWidth: Sets the border width on all sides of an element.
- Type:
number | undefined
- Type:
- [ ] borderBottomWidth: Sets the bottom border width of an element.
- Type:
number | undefined
- Type:
- [ ] borderEndWidth: Sets the end border width of an element.
- Type:
number | undefined
- Type:
- [ ] borderLeftWidth: Sets the left border width of an element.
- Type:
number | undefined
- Type:
- [ ] borderRightWidth: Sets the right border width of an element.
- Type:
number | undefined
- Type:
- [ ] borderStartWidth: Sets the start border width of an element.
- Type:
number | undefined
- Type:
- [ ] borderTopWidth: Sets the top border width of an element.
- Type:
number | undefined
- Type:
- [ ] display: Controls the display behavior of an element.
- Type:
'none' | 'flex' | undefined
- Type:
- [ ] overflow: Controls the overflow behavior of an element.
- Type:
'visible' | 'hidden' | 'scroll' | undefined
- Type:
- [ ] zIndex: Controls the stack order of an element.
- Type:
number | undefined
- Type:
- [ ] direction: Sets the directionality of text and elements.
- Type:
'inherit' | 'ltr' | 'rtl' | undefined
- Type:
Gap Props
- [ ] rowGap: Sets the gap between rows in a flex container.
- Type:
number | undefined
- Type:
- [ ] gap: Sets the gap between items in a flex container.
- Type:
number | undefined
- Type:
- [ ] columnGap: Sets the gap between columns in a flex container.
- Type:
number | undefined
- Type: