Electrical component with an electronic component on a side of a casing with a space trail, between two