It's important to find support when going through a tough time, but before divulging the details to those at work, think about the benefits and drawbacks of sharing. If you're experiencing health issues, for example, you may want to disclose some specifics about your situation to your boss and team, since you may require time out of the office for doctors' appointments.
Take your workplace culture into account. For example, if you have the kind of work environment where everyone's personal life is an open book, it may feel natural to share more about what's going on. If your office is uber professional, it may be more culturally appropriate to only disclose details through a formalized process that involves approaching your manager or the HR department.
If you do opt to share details, your colleagues may offer advice or ask questions. Decide ahead of time what you're willing to discuss and what you'd rather keep private.