Disable a component

Yes. Take a look here: How to disable html.button