How to serve plotly dash figure with certain button config?

When creating a plotly express figure in JupyterLab I would do something like:

fig = px.lines(...)
config = {...}

However, for dash applications, I have to return the fig not the return value.

How can I change the config of the figures when they are served with Dash?

Just found the answer, the config has to be provided in the dcc.Graph object.

    dcc.Graph(id="protein-figure", config=figure_config),