Although ripened elderberries are frequently used to make wine, jellies, and desserts the elderberry plants themselves contain amygdalin, a cyanogenic glycoside that produces hydrogen cyanide in the digestive tract.
If your pet has eaten any portion of this plant it should be treated as an emergency.