Switch to object literal constructor for Palette and support props.parent, to set a palette's parent in the DOM.