Like what David said, you should follow that tutorial to learn how to build a component that can be rendered in various places, specifically, plugin outlets, which are dotted around the site to provide places where you can render the component.
You can place the code inside the ‘JS’ tab and pair it with api.renderInOutlet()
and a <template>
tag.