Design - Like SLRs, DSLRs typically use interchangeable lenses (1) with a proprietary lens mount. A movable mechanical mirror system (2) is switched down (exact 45-degree angle) to direct light from the lens over a matte focusing screen (5) via a condenser lens (6) and a pentaprism/pentamirror (7) to an optical viewfinder eyepiece (8). Most of the entry-level DSLRs use a pentamirror instead of the traditional pentaprism.
Focusing can be manual, by twisting the focus on the lens; or automatic, activated by pressing half-way on the shutter release or a dedicated auto-focus (AF) button. To take an image, the mirror swings upwards in the direction of the arrow, the focal-plane shutter (3) opens, and the image is projected and captured on the image sensor (4), after which actions, the shutter closes, the mirror returns to the 45-degree angle, and the built-in drive mechanism re-tensions the shutter for the next exposure.
Compared with the newer concept of mirrorless interchangeable-lens cameras, this mirror/prism system is the characteristic difference providing direct, accurate optical preview with separate autofocus and exposure metering sensors. Essential parts of all digital cameras are some electronics like amplifier, analog-to-digital converter, image processor and other microprocessors for processing the digital image, performing data storage and/or driving an electronic display.
Ref -
https://en.wikipedia.org/wiki/Digital_single-lens_reflex_camera