diff --git a/packages/ui/CHANGELOG.md b/packages/ui/CHANGELOG.md index a91fbdd0aa..b49cb7a1e8 100644 --- a/packages/ui/CHANGELOG.md +++ b/packages/ui/CHANGELOG.md @@ -2,6 +2,12 @@ The following is a curated list of changes in the Enact ui module, newest changes on the top. +## [unreleased] + +### Added + +- `ui/Layout.Cell` prop `componentCss` to support customizing the component used in `Cell` + ## [4.8.0] - 2024-02-08 No significant changes. diff --git a/packages/ui/Layout/Cell.js b/packages/ui/Layout/Cell.js index 3b2d4795c4..da12e15a25 100644 --- a/packages/ui/Layout/Cell.js +++ b/packages/ui/Layout/Cell.js @@ -59,10 +59,21 @@ const CellBase = kind({ */ component: EnactPropTypes.renderable, + /** + * Customizes `Cell` together with `component` prop. + * + * When using {@link ui/Layout.Cell}, the `componentCss` prop is passed to the rendered component + * as `css`. + * + * @type {Object} + * @public + */ + componentCss: PropTypes.object, + /** * Called with a reference to the root component. * - * When using {@link ui/Layout.Cell}, the `ref` prop is forwarded to this component + * When using {@link ui/Layout.Cell}, the `ref` prop is forwarded to the rendered component * as `componentRef`. * * @type {Object|Function} @@ -162,13 +173,13 @@ const CellBase = kind({ } }, - render: ({component: Component, componentRef, ...rest}) => { + render: ({component: Component, componentCss, componentRef, ...rest}) => { delete rest.align; delete rest.grow; delete rest.shrink; delete rest.size; - return ; + return ; } });