A component diagram may show the key internal structure of components, including classes within the component. For details see Section 18.5, “Class”.
Classes can only be added to a component diagram if they already exist in the model (by selecting them in the explorer and executing the "Add to diagram" button??2 command). There is no way to create a new class on a component diagram.