pass selected DOM node in as a prop.