Triac should be isolated separately from main control PCB, that will be good, but you also can have triac on board, in both cases triac needs appropriate heatsink for up to 40-60W (check datasheet data for correct value). That heatsink need space, and you should use isolated triac.