Interactive block plugin?

Helllo r/Wordpress!

As per title says, I’m trying to make a plugin for WordPress, more specifically, an image insertion plugin for Gutenberg.

Basically, the user would have 2 ways to insert an image:

\- By choosing a file that’s on their computer (like the default image block)

\- By searching an image and selecting the one they want to insert.

​

The user would have to choose the way they want to insert an image through a ButtonGroup and depending on their choice, a button (for browsing their files) or a search bar (to search for an image) would appear. Something [like that]) (Imgur link).

​

Would such functionality be possible? If so, how should I proceed?

Thanks in advance.

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer