Hub internals vary between wheels and brands, and many manufacturers use proprietary mechanisms, but some parts are common. The hub shell is the outermost part of the hub; the spokes are laced into it to connect the hub to the rim, and it acts as the housing for the other components. The hub bearings sit inside the shell. They are held in place either by cones and lock nuts or by end caps that sit on the outside of the bearings.
An axle runs through the middle. It may be set up to house a skewer for a quick-release wheel, or it may be a hollow tube called a through-axle. Rear wheels have an additional part: the freehub. The cassette fits onto the freehub, which has its own bearings so it can spin freely from the wheel and allow the rider to freewheel. Some manufacturers use a cup-and-cone system for the axle bearings and cartridge bearings for the freehub, or the reverse; neither arrangement typically allows freehub adjustability.