-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathnavbar.py
26 lines (23 loc) · 846 Bytes
/
navbar.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
import dash_bootstrap_components as dbc
def create_navbar():
navbar = dbc.NavbarSimple(
children=[
dbc.DropdownMenu(
nav=True,
in_navbar=True,
label="Menu",
children=[
dbc.DropdownMenuItem("Home", href='/'),
dbc.DropdownMenuItem(divider=True),
dbc.DropdownMenuItem("Page 2", href='/page-2'),
dbc.DropdownMenuItem("Page 3", href='/page-3'),
],
),
],
brand="Home",
brand_href="/",
sticky="top",
color="dark", # Change this to change color of the navbar e.g. "primary", "secondary" etc.
dark=True, # Change this to change color of text within the navbar (False for dark text)
)
return navbar