How to add components to a schematic which will not be required on a pcb ie, switches, LEDs etc

Is there a way to add components to a schematic, for clarity - switches, LEDs etc - which will not be on the pcb and will not infringe upon either ERC or DRC?
Many thanks…

For LED or switch, I’d use a pin-and-socket for each lead to connect. ERC should be OK with that.
For DRC, I’m not sure.

You can set the Exclude from board attribute on a symbol. If it’s wired up in the schematic, it should pass ERC.

Thank you for your suggestion. I’m using Phoenix screw terminals on the boards & therein lies a problem! I’ve tried using a regular (switch) component with all pins ‘no connect’ & deleting it from the pcb on board update. Messy, & wondered if there might be a more ‘professional’ approach.

On the money! Works a treat & passes both ERC & DRC; many thanks.

You will have to use the ‘exclude from board’ option. How to bulk exclude multiple components from PCB?
If you need more info about how to avoid DRC and other errors, here are some good content for you.
| | | Documentation | KiCad
Common Issues Faced in PCB Designing - The Engineering Projects