Patent attributes
A switch assembly (40) and a portable electronic device (100) are provided. The portable electronic device includes a body section (20), a cover section (10) rotatably connecting to the body section, and the switch assembly. The switch assembly includes a first magnetic component (43), a second magnetic component (45), and a movable magnetic component (47). The first magnetic component is mounted on the cover section. The second magnetic component is mounted on the body section, and attracts to the first magnetic component to maintain the portable electronic device at a closed position. The movable magnetic component is movably mounted on the body section, and repels both to the first and second magnetic. The movable magnetic component provides a repulsive force to repel the cover rotates outwards from the body section, when the magnetic component is driven to move close to the first and second magnetic components.