Slugs for Components

I would like to know if it is possible to use auto-generated slugs for components. In v3 and v4 of Strapi, there were different ways to implement auto-generated slugs to collection types, the v4 tutorial can be found here: How to Create a Slug System in Strapi v4.

However, they only work for collection types. I need to use auto-generated slugs on components because the auto-generated slug of a component is supposed to be used as an anchor tag within the component. That way, users of our CMS can copy the auto-generated slug of a component and paste it into the ‘anchor’ field of another component, providing working anchor tags between components within a landing page. I have not found any way to solve this, though. Anyone got an idea?