Add toggle functionality.

Toggle is the most common use case for the toolbar and having it in the components saves clutter inside the production code.