WidgetWrapper
Installation
import { WidgetWrapper } from 'uxp/components';Signature
const WidgetWrapper: React.FunctionComponent<IWidgetWrapperProps>Examples
<WidgetWrapper>
<Label>My custom widget</Label>
</WidgetWrapper>You can define custom break points for the widget and use css to make the widget responsive
Uxp will automatically apply the relevant class based on the width or height of the widget wrapper.
these class names will be prefixed with either `w-` (for width) or `h-` (for height)
then you can write css to make the widgets resposive
<WidgetWrapper
cssBreakPoints={{
width: {
default: 'larger',
100: 'smaller',
200: 'small',
300: 'medium'
},
height: {
default: 'larger',
100: 'smaller',
200: 'small',
300: 'medium'
}
}}
>Properties
Name
Type
Mandatory
Default Value
Example Value
Related Types
Last updated