How to extend page component?

I need to extend a page component. How could I do this? Is there some example?.