Create collapse, modal and switch components.