It’s now illegal to use sparklers in Westchester County – and those selling them could face a $1,000 fine or even jail time.

County lawmakers unanimously approved the law last week, calling it “the Pyrotechnic Children’s Safety Act.”

The ban had support among local fire departments, which said they posed fire and burn risks. Public safety officials said a number of sparklers used together could be used to make explosives, according to lawmakers.

MOUNT VERNON: Mayor clashes with county over stalled field renovation

SPRAIN RIDGE: Pool on track to open in 2019

The sale and possession of sparklers and some other ground based fireworks were legalized in New York State outside New York City in 2014, but counties had to opt in with their own laws to legalize sale and possession. Westchester never did.

Even in areas where fireworks are legal within the state, they can only be sold for limited periods leading up to Independence Day and New Year’s Eve.

In October, state law changed again, and now counties have to opt-out to ban the sale of sparklers. Suffolk and Nassau on Long Island are among the counties to have adopted bans.

In Westchester, people who use a sparkler would face a fine up to $500. Those who sell would face a misdemeanor, and could a pay a fine up to $1,000 and face jail time based on the age of the person to whom the sparkler was sold.

Follow Mark Lungariello on Facebook: @lungariello; and Twitter: @marklungariello.