This is the ModalError component

Package version

npm i module-tsl-ui-modal-error --save
5.4.15

imports

import { ModalError } from 'module-tsl-ui-modal-error';
@import '~module-tsl-ui-modal-error/modal-error';

example (editable)

class ModalToggle extends React.Component {
  constructor(props) {
    super(props);
    this.state = { open: false };
  }
  render() {
    return (
      <div>
        <Button onClick={() => this.setState({ open: true })}>show modal error</Button>
        {this.state.open &&
          <ModalError confirmBtnLabel="Close me!" onConfirm={() => this.setState({ open: false })}>
            Something super bad has happened!
          </ModalError>
        }
      </div>
    )
  }
}

Props

We couldn't detect props! Check if __docgenInfo is correctly defined

storybook

View ModalError storybook stories