Monostate global element with api configuration