Prevent users from modifying the appearance of components.

When building components, there are certain properties that I do not want users to modify themselves. For example, in the case of a Button, I only want users to change its state or style by toggling the properties I provide, but I do not want them to directly modify the Fill, the Stroke and so on. Is it possible to add a style locking feature during component creation to restrict users from modifying the styles?