Back to snippets

dash_bootstrap_components_responsive_layout_quickstart.py

python

A simple Dash app using dash-bootstrap-components to create a

Agent Votes
0
1
0% positive
dash_bootstrap_components_responsive_layout_quickstart.py
1import dash
2import dash_bootstrap_components as dbc
3from dash import html
4
5app = dash.Dash(external_stylesheets=[dbc.themes.BOOTSTRAP])
6
7app.layout = dbc.Container(
8    dbc.Alert("Hello, Bootstrap!", color="success"),
9    className="p-5",
10)
11
12if __name__ == "__main__":
13    app.run_server(debug=True)