No Preview

Sorry, but you either have no stories or none are selected somehow.

If the problem persists, check the browser console, or the terminal you've run Storybook from.

Toast Example

To correctly implement the Toast component, use the following structure

import {Button, Toast, toastTrigger} from "..."

const Component = ()=>{

const showToast = ()=>{
toastTrigger("message", "type")
}

return (
<Toast />
<Button content="Display Toast" type="Base" onClick={showToast} />
)
}

<Toast /> component just has to be imported once into the view to be displayed.