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 = {...}
fig.show(config=config)

However, for dash applications, I have to return the fig not the fig.show() 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),