This is a simple example of a modal dialog component.
It opens when you click the button and closes when you click the 'x', press Escape, or click outside of the dialog area.