Skip to content

LayoutProps

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

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:114


optional flexBasis?: LayoutValue

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


optional flexGrow?: number

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


optional flexShrink?: number

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


optional height?: LayoutValue

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


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

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


optional maxHeight?: LayoutValue

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


optional maxWidth?: LayoutValue

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


optional minHeight?: LayoutValue

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


optional minWidth?: LayoutValue

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


optional visible?: boolean

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


optional width?: LayoutValue

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