Toast component is controlled via the ToastService that needs to be installed as an application plugin.
$toast is available as a property in the application instance for Options API. The service can be injected with the useToast function for Composition API.