The reduced dimensionality and heterostructures of 2D materials make them promising candidates for the fabrication of photonic and optical devices. The electrical, mechanical, and optical properties of 2D materials depend on their layered structure.