An electronic device may include a first member that forms at least a part of an exterior of the electronic device and includes an opening; a second member that is disposed inside the electronic device; at least one electronic component that is disposed between the first member and the second member not to overlap with the opening of the first member; and a button device disposed inside the electronic device. The button device may include a button that is inserted into the opening of the first button and a dome switch that is disposed at a position where the dome switch is pressed by the button.