A connector assembly comprising a first connector part and a second connector part, the first connector part and the second connector part comprising at least one magnet for providing an attractive force between the first connector part and the second connector part to align the first connector part and the second connector part in a connected state, wherein: the first connector part comprises a guide track and the second connector part comprises a follower, the guide track being shaped to guide movement of the follower, under the influence of said attractive force, to a retaining position in which the follower engages an abutment surface on the first connector part without any deformation or flexing of the first connector part or the second connector part, to provide a retaining mechanism for retaining the first connector part and the second connector part in the connected state; the first connector part comprises a first planar connection surface and the second connector part comprises a second planar connection surface, wherein the first planar connection surface is aligned adjacent to the second planar connection surface in the connected state by said attractive force; the guide track comprises a lip portion overhanging a portion of a recess formed in the first planar connection surface of the first connector part, the lip portion having an outer surface and an inner surface facing the recess, and the follower comprises a lug portion having an outer surface and an inner surface facing the second planar connection surface, characterised in that the first connector part and the second connector part are arranged such that when the first connector part is placed near the second connector part in a correct orientation, in which the attractive force is generated, the outer surface of the lug portion is brought into contact with the outer surface of the lip portion under the influence of said attractive force, and the lip portion and the lug potion are shaped to guide subsequent movement of the lug portion, under the influence of said attractive force, transversely relative to the first planar connection surface, around the outer surface of the lip portion, and into said portion of the recess, to provide the retaining mechanism, said attractive force having a transverse component relative to the first planar connection surface for moving the lug portion into said portion of the recess. the first connector part comprises a guide track and the second connector part comprises a follower, the guide track being shaped to guide movement of the follower, under the influence of said attractive force, to a retaining position in which the follower engages an abutment surface on the first connector part without any deformation or flexing of the first connector part or the second connector part, to provide a retaining mechanism for retaining the first connector part and the second connector part in the connected state; the first connector part comprises a first planar connection surface and the second connector part comprises a second planar connection surface, wherein the first planar connection surface is aligned adjacent to the second planar connection surface in the connected state by said attractive force; the guide track comprises a lip portion overhanging a portion of a recess formed in the first planar connection surface of the first connector part, the lip portion having an outer surface and an inner surface facing the recess, and the follower comprises a lug portion having an outer surface and an inner surface facing the second planar connection surface, characterised in that the first connector part and the second connector part are arranged such that when the first connector part is placed near the second connector part in a correct orientation, in which the attractive force is generated, the outer surface of the lug portion is brought into contact with the outer surface of the lip portion under the influence of said attractive force, and the lip portion and the lug potion are shaped to guide subsequent movement of the lug portion, under the influence of said attractive force, transversely relative to the first planar connection surface, around the outer surface of the lip portion, and into said portion of the recess, to provide the retaining mechanism, said attractive force having a transverse component relative to the first planar connection surface for moving the lug portion into said portion of the recess.