[SalesForce] Set duration for Toast messages in LWC

Is there a way to set the duration for custom Toast messages in LWC? I know, in Aura we do it using Duration attribute, but looks like in case of LWC there is no 'Duration' attribute defined. Also, looks like Custom Toast messages are still in BETA version in LWC so I can't deploy it to PROD right? Any idea when would it be GA?

Best Answer

There's no option for a duration, the only options are to provide a close button, wait three seconds, or do both. "Beta" components are those that are "production quality, but with known limitations." You can use beta components in production, but you need to be aware of limitations (in this case, there's no duration you can set!).

Related Topic