useAutoSizer

Hook

A hook that enables responsive sizing for an element.

Usage

const { ref, pluginDimensions, updatePluginDimensions } = useAutoSizer({ enabled: true, options: { resizable: true, width: 300, height: 400 } })

Props

enabled

Whether the auto sizer is enabled.

type

boolean

options

The options of the UI interface.

type

Options