allow functions or strings for icon name