Component: display or hide an element.