Yes, the sentence "Thanks for sharing your opinion" is grammatically correct. It expresses gratitude to someone for providing their thoughts or viewpoints on a particular topic.
Possible rephrasing could include:
1. "Thank you for expressing your thoughts."
2. "I appreciate you sharing your views."
3. "Thanks for giving your perspective."
4. "Thank you for providing your insights."
Each alternative conveys a similar sentiment of gratitude for