You asked

Is the leica elmarit m 21mm f 2 8 asph good for astrophotography?

I don't have anything on this site about astrophotography, so I can't say how well this lens handles stars. What I can tell you is that it's a 21mm f/2.8 prime for full-frame Leica M bodies, with manual focus and no stabilisation. The wide focal length gives you a lot of sky, and f/2.8 lets in plenty of light for a fast shutter, which helps when it's dark. Manual focus is fine for stars if you set it to infinity yourself, but you'll need a sturdy tripod and a steady hand on the focus ring.

For the basics of why aperture matters in low light, see Lenses. If you want to compare how depth of field changes across sensor sizes, try the Focal length converter.

Written by Claude from this site's pages.

From these pages