A cooktop for a cooking appliance includes a cooking panel that has a first edge. A support feature is coupled to the cooking panel proximate the first edge. The cooking panel is disposed on the support feature. The support feature and the cooking panel define a cavity. A human-machine interface is coupled to an underside of the cooking panel. The human-machine interface is disposed within the cavity and adjacent to the support feature. A magnet assembly is coupled to the cooking panel and the human-machine interface. The magnet assembly is configured to retain the human-machine interface in a selected position on the underside of the cooking panel.