Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bottom Navigation icon #931

Open
CChisuwo opened this issue Jun 28, 2022 · 1 comment
Open

Bottom Navigation icon #931

CChisuwo opened this issue Jun 28, 2022 · 1 comment

Comments

@CChisuwo
Copy link

I am trying to implement a bottom navigation for a mobile first dash web app. I am however unable to add icons to each of the navigation items even after adding an icon="css_icon_pack_name" to the navitem dict. Any advice would be very helpful thanks

@coralvanda
Copy link
Contributor

The icon prop won't accept a pack name, it needs to have a string for a particular icon, and each item can have a different icon that way. Basic example:

navItems=[
            dict(label='test 1', value='val1', icon='1'),
            dict(label='test 2', value='val2', icon='2'),
]),

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants