reflexion
Ƭ Alignment: "top-left"
| "top-center"
| "top-right"
| "left"
| "center"
| "right"
| "bottom-left"
| "bottom-center"
| "bottom-right"
Ƭ Dimension: "hug"
| "fill"
| string
| number
Ƭ Direction: "vertical"
| "horizontal"
Ƭ FlexProps: Object
Name | Type | Description |
---|---|---|
align? |
Alignment |
Element container setting that sets the alignment of its children. If set, the element is considered to be a container. |
class? |
string |
Element classes. |
className? |
string |
- |
direction? |
Direction |
Element container setting that sets the flow direction of the children. If set, the element is considered to be a container. |
gap? |
Gap |
Element container setting that set the gap betwen its children. If set to "auto" , the gap is evenly distributed between the children. |
height? |
Dimension |
Element height. If set to "fill" , the element vertically fills the parent container. If set to "hug" , it hugs the content of its children. |
overflow? |
"hidden" | "auto" |
Element overflow setting. Controlled by the scroll property. |
scroll? |
boolean |
Element container setting that enables scrolling if its content goes out of bounds. |
style? |
JSX.AllCSSProperties |
Element styles. These override any style abstracted by the other properties. |
width? |
Dimension |
Element width. If set to "fill" , the element horizontally fills the parent container. If set to "hug" , it hugs the content of its children. |
wrap? |
boolean |
Element container setting that sets whether containing items should wrap or not. |
Ƭ Gap: "auto"
| number
| string
▸ Flex(props
, context?
): null
| VNode
<any
>
Creates a div
element with abstracted CSS Flexbox properties.
Name | Type |
---|---|
props |
RenderableProps <PropsWithoutRef <FlexProps & DOMAttributes <HTMLDivElement >> & {}, any > |
context? |
any |
null
| VNode
<any
>
node_modules/preact/src/index.d.ts:90
▸ adjustGap(style
, gap
): null
| object
Name | Type |
---|---|
style |
null | object |
gap |
undefined | Gap |
null
| object
▸ alignFlex(align
, direction
): Object
Name | Type |
---|---|
align |
Alignment |
direction |
Direction |
Object
Name | Type |
---|---|
alignItems |
string |
justifyContent |
string |
▸ flex(direction
, wrap
, align
, overflow
, gap
, width?
, height?
): Object
Name | Type |
---|---|
direction |
undefined | Direction |
wrap |
boolean |
align |
undefined | Alignment |
overflow |
undefined | "auto" | "hidden" |
gap |
undefined | Gap |
width? |
Dimension |
height? |
Dimension |
Object
Name | Type |
---|---|
display |
undefined | string |
flexDirection |
undefined | string |
height |
undefined | Dimension |
overflow |
undefined | "auto" | "hidden" |
width |
undefined | Dimension |
wrap |
string |
▸ flexDirection(direction
): "row"
| "column"
Name | Type |
---|---|
direction |
Direction |
"row"
| "column"
▸ merge<A
, B
>(a
, b?
): A
| A
& B
Name | Type |
---|---|
A |
extends object |
B |
extends object |
Name | Type |
---|---|
a |
A |
b? |
B |
A
| A
& B