This meaning describes visible and often irritating satisfaction with oneself.
He looked smug after winning the argument.
She gave a smug smile when the prediction proved correct.
This meaning emphasizes an attitude of superiority toward other people or viewpoints.
The article had a smug and dismissive tone.
They became smug about their early success.