Black Lives Matter. Please consider donating to Black Girls Code today.

How do i get css files for InputGroup of dash_bootstrap_components?

i am trying to replicate basic examples from input group page of dash_bootstrap_components available on documentation website of input group page. i couldn’t find .css files containing “.mb-3” class in a .css file on github page(i found one and i failed replicating it). So, where do i get .css files, so i could replicate the examples on the documentation website.

You will need to include the Bootstrap CSS, either by including it in your /assets directory, or with e.g.

app = dash.Dash(
     __name__,
    external_scripts=external_scripts,
    external_stylesheets=external_stylesheets
)

(see https://dash.plot.ly/external-resources)

Dash Bootstrap Components already includes a simple way to do this with

app = dash.Dash(__name__, external_stylesheets=[dbc.themes.BOOTSTRAP])

This is explained on the Dash Bootstrap Components homepage.
You can get also the Bootstrap CSS on https://www.bootstrapcdn.com/

i want the css files that are used in dash’s bootstrap website. how do i get them @wbrgss ?

Hi Naveen_9697,

You can find them on the Github page.

Gr,

Sempah

1 Like