Treatment Advocacy Center
Voluntary treatment for any medical condition is always preferable. However, because of the nature of mental illness, involuntary treatment and hospitalization is necessary in certain circumstances, especially if the illness has impacted that person’s ability to identify their own need for treatment.
Each state determines its own laws for when and how an individual can be required to receive treatment for mental illness. These laws, known as civil commitment laws or codes, must satisfy certain constitutional requirements, but otherwise may vary greatly from state to state.
https://www.treatmentadvocacycenter.org/fixing-the-system/state-treatment-laws