create component preview