Hours after news broke that actor Alan Rickman, well known for his role as Serverus Snape in the "Harry Potter" films, had died, author J.K. Rowling is speaking out. The British writer shared her thoughts on his sudden passing via social media, sharing with followers and dedicated fans of "Harry Potter" — dubbed Potter Heads — her grief.

Rowling, 50, wrote that Rickman's death left her feeling both "shocked and devastated." She fondly recalled working with him on the film adaptations of her multi-book series, patting him on the back for being such a talented actor and all-around good person. Rowling also sent her condolences to Rima Horton, the wife Rickman, 69, left behind. She noted that while she and other fans of the Emmy award-winner had bid farewell to a "great talent," his loved ones were saying goodbye to "part of their hearts."

J.K. Rowling J.K. Rowling, photographed during a photocall after a reading from "The Casual Vacancy" at Queen Elizabeth Hall in London on Sept. 27, 2012, has officially addressed actor Alan Rickman's death on Twitter. Photo: Getty Images

​Other "Harry Potter" stars have also taken the time to mourn Rickman publicly. Actors Oliver and James Phelps, who played George and Fred Weasley in the franchise, shared with followers that they were completely caught off guard by his death and deeply saddened. Warwick Davis who played Hogwarts' own Professor Flitwick in "Harry Potter" also spoke out about how the traffic loss. Other celebrities — some who knew Rickman on a personal or professional level and some who did not — also addressed his sudden death on Twitter. Charlie Sheen, Kevin McKidd, and many more tweeted about Rickman whether they were sharing a fond memory or simply celebrating his lengthy career.

Rickman's family confirmed his passing early Thursday morning, though it remains unclear exactly when he died. He is thought to have passed due to complications caused by cancer, which he never spoke about publicly. Rickman was reportedly surrounded by those he loved most when he died in his native London.