Toast

Usage of Toast Component (using FormComposerV2)

Success Toast

<Toast
label={"Success Toast Message"}
onClose={}
transitionTime={}
/>

Warning Toast

<Toast
label={"Warning Toast Message"}
warning={β€œwarning”}
onClose={}
transitionTime={}
/>

Error Toast

<Toast
label={"Error Toast Message"}
error={true}
onClose={}
transitionTime={}
/>

The default transitionTime for any variant of toast will be 5 seconds, but that can be configurable using the transitionTime prop (in milliseconds).

For more information: Storybook for Toast

Last updated

All content on this page by eGov Foundation is licensed under a Creative Commons Attribution 4.0 International License.