Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
If you want a closed discrete set take the metric hedgehog with $\kappa$ many spines, where $\kappa$ is the desired cardinality. If $\kappa<\mathfrak{c}$ replace $[0,1]$ by a countable connected Hausdorff space, as in Will Brian's answer.
If you want a closed discrete set take the metric hedgehog with $\kappa$ many spines, where $\kappa$ is the desired cardinality.
If you want a closed discrete set take the metric hedgehog with $\kappa$ many spines, where $\kappa$ is the desired cardinality. If $\kappa<\mathfrak{c}$ replace $[0,1]$ by a countable connected Hausdorff space, as in Will Brian's answer.