A base component constructor function.