First, you need to import a component to your code (сheck component path is right):
import Dialog from "../../core/Dialog";
To use the component, copy and paste an example from the CODE tab.
Default props of component can be omitted, they are applied automatically. For example, you can skip the prop type='def', because 'def' is the default value of prop 'type'.
type
view
color
className
icon
title
text
backdropOpacity
leftButton
rightButton
isOpen
onClose
< Button view="filled" color="primary" text="Open Dialog" onClick={ () => setOpen(true) } / > < Dialog type={ default } view={ smooth } color={ primary } icon="info-sign" title="This is dialog" text={ text } backdropOpacity={ 40 } leftButton={ < Button type="default" view="outlined" color="primary" dense={ false } onClick={ () => setOpen(false) } text="Maybe next time" / > } rightButton={ < Button type="default" view="filled" color="primary" dense={ false } onClick={ () => setOpen(false) } text="Sure, continue!" / > } isOpen={ false } onClose={ () => setOpen(false) } />