adverb
to one's heart's content; as much as one likes
Adverb meaning doing something freely, without restraint, to the fullest extent one desires.
休日は思う様、趣味に没頭した。
On my day off, I indulged in my hobby to my heart's content.
彼は思う様、才能を発揮した。
He displayed his talent to the fullest.
Synonymous; 思う存分 is more common in modern Japanese.
From 思う (to think, feel) + 様 (way, manner), literally 'in the way one thinks/desires'.