# Component/Toast > Props: component-toast.props.txt ## Examples ### Base ```tsx { render: args => { const toast = useToast(); const handleClick = (props: MessageOptions) => { toast?.show && toast.show({ ...props }); }; return ; } } ``` ### Direction ```tsx { render: args => { const direction: ToastDirection[] = ['column', 'column-reverse']; const toast = useToast(); const handleClick = (props: MessageOptions) => { toast?.show && toast.show({ ...props }); }; return {direction.map(direction => { return ; })} ; } } ``` ### Handle Destroy ```tsx { render: () => { const toast = useToast(); return ; } } ``` ### Inline ```tsx { render: args => { const toast = useToast(); const ref = useRef(null); const handleClick = (props: MessageOptions) => { toast?.show && toast.show({ ...props, root: ref.current }); }; return <> ; } } ``` ### Kind ```tsx { render: args => { const buttonKind: Record = { error: 'secondary', success: 'primary', info: 'black' }; const toast = useToast(); const handleClick = (props: MessageOptions) => { toast?.show && toast.show({ ...props }); }; return {(['info', 'success', 'error'] as ToastKind[]).map(kind => { return ; })} ; } } ``` ### Position ```tsx { render: args => { const position: ToastPositionType[] = ['top-right', 'top-center', 'bottom-right', 'bottom-center', 'center']; const toast = useToast(); const handleClick = (props: MessageOptions) => { toast?.show && toast.show({ ...props }); }; return {position.map(position => { return ; })} ; } } ```