useItemSize
Hook that returns the size of the widget in pixels.
Returns
The ItemSize of the widget.
Example
src/widgets/example/Example.tsx
import React from 'react'
import {useItemSize} from '@modbros/dashboard-sdk'
export default function Example() {
const {width, height} = useItemSize()
return null
}