A social media star whose candid and brave battle with cystic fibrosis inspired millions of people across the globe died over the weekend — just seven days after receiving a double lung transplant.

Claire Wineland, 21, was diagnosed at birth with the genetic condition that overloads the organs with mucus and was given a 10-year life expectancy.

“Death is Inevitable. Living a life we can be proud of is something we can control,” the California native once said.

Using social media platforms such as YouTube and Instagram, Wineland spoke frankly about her painful treatments, long hospital stays — and always being aware of the specter of death.

“Life isn’t just about being happy … It’s about what you’re making of your life and whether you can find a deep pride in who you are and what you’ve given,” Wineland said in a 2017 TEDx Talk about the importance of self-worth when living with a life-shortening illness.

Throughout her life, Wineland tried not to take herself too seriously, joking in videos about the absurdities swirling around her — like people stopping her at Whole Foods to tell her eating more pineapple or doing a mushroom cleanse would cure her, according to CNN.

A big supporter of Vermont Sen. Bernie Sanders, Wineland once fled her hospital room to attend one of his rallies during the 2016 presidential campaign.

“You are an inspiration and brought joy to many. You’ll be missed deeply,” Sanders tweeted following Wineland’s death.

At age 13, after coming out of a 16-day medically induced coma, Wineland founded the Claire’s Place Foundation to financially support others affected by her lifelong disease.

Through her videos and social media posts, Wineland tried to break down stereotypes about sick or disabled people, telling her followers in March that she’d “struggled more with guys, depression drugs, family and career than I ever have with my illness,” adding, “I’m not an innocent and I’m not a child.”

Her YouTube channel eventually attracted more than 250,000 subscribers, but her illness forced her to leave the platform in 2017, BBC reported. Still, she kept up with her followers on Instagram and Twitter.

“When you’re talking to someone who has a disability or has an illness, expect that they live lives like yours,” Wineland explained in a January 2015 video titled “Tips for Interacting with a Sick Person.”

In recent months, Wineland’s health took a dramatic turn for the worse, prompting her to require a double lung transplant. She was recovering from the procedure when she got a blood clot and suffered a massive stroke Aug. 26. She was taken off life support on Sunday.

“She was not in any pain and the medical staff said it was the most peaceful passing they had ever witnessed,” Laura McHolm, chairman of the board of Claire’s Place Foundation, said Monday, adding that Wineland had signed up as an organ donor.

Wineland was surrounded by her mother, Melissa Yeager, and father, John Wineland, at the time of her death. Her parents split up when she was 3 but remained friends to care for Wineland.

In 2017, her father recalled a conversation he and Yeager had with Wineland about death. At one point, Wineland looked up at her mother and said, “After you die, you’re closer to everyone you love because you’re part of everything.”