Is there already a 5V pushbutton that has an integrated LED with series resistor? The button can be used as a normally closed or normally open contact. The LED can be controlled independently of the button. Sales Page
However, my component has no connections, so that the component can be plugged directly onto a breadboard. Cables/wires are required from the component to the breadboard. The button can also be connected as a normally open or normally closed contact.
There isn’t enough information in the data sheet you provided to do anything with. There is no indication of what the pins connect to or which pins are which (and thus no indication of the polarity of the LED in relation to the pins.) Without that information there isn’t anything to do.
switch used as reference, no resistor, led switch widely available on aliexpress, this is one requiring 12mm hole. advertised as waterproof metal switch on momentary or latching configurations.
hope it helps anyone.
Note: For illustration purposes only, I’ve changed the fill of the connectors. Please do not do so
After all these edits, you should get this (right-click → save image as… to download this SVG)
Schematic
More problems here. Labels all wrong, and pins align to the centre (I.e. no terminalIDs)
I have fixed it in this new improved part
PCB view
You will have to redo the PCB yourself (as I do not know the dimensions of the holes of the connectors, and the objects are ellipses – they have to be circles, so that has to be redone
Note that I did not change the ModuleID, so please delete the old part to prevent confusion
Most edits are done with the new part editor (using a 4-pin IC as a base), so to change the PCB right-click the “Illumin” chip → edit → PCB → File → Load image for view → select file → open
Schematic subparts don’t make any sense in this context. There is only a single part here, there is nothing to create a subpart with. Your part has a number of problems however, icon needs to reuse the breadboard svg so the correct part shows in the preview and his (perhaps corrected as I haven’t looked at it) pcb needs to be used as opposed to the IC. Schematic should be manually corrected to meet the graphics standards rather than using the schematic extension. In this case it is preferable to have the switch and the LED show in schematic as in the original.
Over all looks fine, I would add in the url to the fzp file, it is useful to tell folks where they can buy one of these and what the specs are. I’d also replace the pcb svg with one with just 4 standard 0.038in header pads as the switch won’t mount on the pcb (the LED pins don’t extend down far enough) so it will need to connect via wires. In this case you may want to put the switch and LED in silkscreen so it is obvious where the wires should go.
The momentary switches may work (but need large holes which will likely cause mechanical problems) but the latching type will not (the LED pins are too short to fit in to the pcb to solder.) That is why I suggested a header type pcb as it will connect via wires to either type. These switches appear to be aimed at connecting to the board via wires.