Skip to main content

BaseErrorModal

Import

import { BaseErrorModal } from 'binak-react-components';

Props

NameTypeDefault Value
errorstringundefined
errorsstring[]undefined
okayButtonstring''
titlestring'An Error Occurred'
onClose() => unknownundefined
...propsdialog props | BaseModal Props-

Example

const [error, setError] = useState('This is an error!');

return (
<BaseErrorModal
error={error}
onClose={() => setError('')}
okayButton="okay"
/>
);

BaseErrorModal