How to resize the widget by dragging its border

Hello there! I would like to know how to resize my custom-developed widget by dragging its borders, similar to a standard Figma component. I believe this feature would enhance user interaction with the widget and make it more efficient. Does anyone have any insights or suggestions? I would greatly appreciate it.

There are some examples on github

so, it seems like a third party package, am i right?

Yes, you’ll need to use a third-party package or build your own. Figma doesn’t have this feature natively. Feel free to add a suggestion to Feedback