I've found UI Patterns to be a useful reference for this sort of thing. It's arranged much like the classic GoF Design Patterns book, with each pattern description containing:
- The problem the pattern solves
- An example of the pattern in action
- Sample use cases for the pattern
- The solution to implement the pattern
- Rationale for the solution