Skip to content

LayoutProps

Defined in: ui/src/types.ts:102

Common layout props every element can accept (applied to its Yoga node).

optional alignSelf?: "stretch" | "auto" | "flex-start" | "center" | "flex-end" | "baseline"

Defined in: ui/src/types.ts:115


optional flexBasis?: LayoutValue

Defined in: ui/src/types.ts:114


optional flexGrow?: number

Defined in: ui/src/types.ts:112


optional flexShrink?: number

Defined in: ui/src/types.ts:113


optional height?: LayoutValue

Defined in: ui/src/types.ts:104


optional margin?: number | { bottom?: number; left?: number; right?: number; top?: number; }

Defined in: ui/src/types.ts:109


optional maxHeight?: LayoutValue

Defined in: ui/src/types.ts:108


optional maxWidth?: LayoutValue

Defined in: ui/src/types.ts:106


optional minHeight?: LayoutValue

Defined in: ui/src/types.ts:107


optional minWidth?: LayoutValue

Defined in: ui/src/types.ts:105


optional visible?: boolean

Defined in: ui/src/types.ts:122


optional width?: LayoutValue

Defined in: ui/src/types.ts:103