mergeSx()
ts
function mergeSx(sx): any[];Defined in: props.tsx:19
Normalizes the sx prop into an array.
Parameters
| Parameter | Type | Description |
|---|---|---|
sx | SxProps<Theme> | undefined | The sx prop value (single or array) |
Returns
any[]
An array of sx entries
Remarks
MUI allows the sx prop to be defined as a single value or an array. This helper ensures that the result is always an array, which simplifies composition and spreading of styles.
Since
1.1.0
Author
Simon Kovtyk