The primary component of opium is 12% morphine which is an alkaloid that is often processed chemically to produce illegal drugs such as heroin. Codeine and other non-narcotic alkaloids are also found in the latex that is derived from the opium poppy plant.