What does it do? Simply said: hold item, get potion effect.
For example when you hold diamond in your main hand, you get glowing effect. Once you switch to another item, the effect also switches (or disappears). It also works for the off hand. All can be configured.