Color Widget for Custom Component Parameter

Is there a way to have the color widget? as attribute of a component
Like for materials

You mean for JavaScript components? Not yet, no