In bed with Hilary Duff! Star shows off her legs while wearing only panties and a T-shirt on Instagram

Hilary Duff has come a long way from the self-conscious teen star of the early naughties.

The 29-year-old - who is currently enjoying a much needed vacation in Mexico - shared a sultry photo of herself reclining on a bed on Thursday.

In the photo, which she posted to Instagram, the sexy star can be seen smiling broadly at the camera, clad in nothing but a grey T-shirt and green underwear, her bare legs on display.

Legging it: After battling with her body image, Hilary Duff confessed she's now learned to love her legs

'I didn't always love my legs, but as I've grown, I've learned to love and celebrate myself, just as I am,' she captioned the photo. 'I began to realize that my legs are STRONG and they carry me every. single. day. Our bodies are amazing and something to be grateful for. I'm ME and that's really enough!'

Her newfound confidence is a departure for the Younger actress, who in 2015 confessed to People magazine that she was 'too thin' as a teenager. 

'That was not a healthy place for me. I was so unhappy. I remember my hands cramping because I wasn’t getting enough nutrients,' she revealed. 'A lot of girls my age were super skinny. I think it’s just as bad now, but it’s more normal. It’s crazy. I can’t be that way. It’s not my normal state.'

Bikini babe: The blonde actress shared a series of videos and photos on Snapchat from her vacation in Mexico on Thursday

Girls trip: Hilary looked to be having a great time on her holiday with a female friend, with the two women posing for selfies

Now mom to Luca, four, the blonde beauty admits her post-baby body has changed, but she loves it anyway.

'Things don’t bounce back the way they used to, but I don t need to be 110 lbs,' she said. 'I’m a mother. I feel fit and strong and happy.'

And while Hilary admits she regrets spending her younger years 'constantly worrying that my body is not good enough', she says she still likes to hit the gym.

Loving life: 'Things don’t bounce back the way they used to, but I don t need to be 110 lbs. I’m a mother. I feel fit and strong and happy,' she said

In paradise: A serene Hilary appeared completely relaxed as she took in the stunning scenery and sunset

'I work my butt off in the gym - and, yes, it's because I want to be fit, but it also puts me in a positive mind-set,' she told Health magazine in 2015. 'If I don't have that for a week, I start to get more agitated and impatient. I get in a funk.' 

The singer and actress is currently enjoying a beachside vacation in Mexico with a girlfriend, and shared a series of pictures from their girls trip on Snapchat.

She appeared to be having a great time in the photos, laughing and showing off the stunning scenery. 

On the mo: The fun-loving star enjoyed playing around with the different novelty filters on Snapchat

The comments below have not been moderated.

The views expressed in the contents above are those of our users and do not necessarily reflect the views of MailOnline.

By posting your comment you agree to our house rules.