a floating heatsink is disclosed for components mounted within an electromagnetic enclosure . the floating heatsink includes an aperture within the enclosure wall against which a floating heatsink is disposed on the interior of the enclosure . the floating heatsink is dimensioned to overlap the enclosure around the aperture . a resilient bias member is disposed along the overlap between the floating heatsink and the enclosure . the resilient bias member acts as an electromagnetic gasket while urging the floating heatsink against the component . in certain embodiments the component is replaceable via a second aperture in the enclosure . the floating heatsink is particularly useful for overcoming the need for thermal compounds of heatsinks using the enclosure known in the art .