adds preview and example usage of component