For the dcc.Graph, I have seen the tutorial with the following modebar options:
Is there an option for adding a box where the user can write text?
As far as I know there is nothing built in. But you could could built something like that with a button and a modal with dcc.Input for the user input and then create an annotation.
Hi you can use anything you like and use CSS positioning to align with the mode bar
It looks like annotations with shapes allows you to add a label, which is similar to a text box.
Check out midway through, after the dash updates.
I think you can allow for drawing a shape and then also allow for editing the annotations.