Both. I'm thinking along the lines of being a "T-shaped professional":
Specialize enough in one area so that people know you are the "expert" or "go to person" for anything related to that area. This is the area people remember you for. But being broad across skill sets helps in working with others as well as having a broader perspective.