Add documentation typing for BaseUI