API Reference > ui-components > Properties > withContextStyle withContextStyle FunctionConst Wraps a React component with a span element with a given style attribute withContextStyle(value: React.ReactNode | Promise<React.ReactNode>, context?: PropertyValueRendererContext): undefined | null | { T } Parameter Type Description value React.ReactNode | Promise<React.ReactNode> context PropertyValueRendererContext Returns - undefined | null | { T } Defined in ui/components/src/ui-components/properties/renderers/value/WithContextStyle.tsx Line 22 Last Updated: 13 June, 2024