Skip to content

Latest commit

 

History

History
33 lines (27 loc) · 611 Bytes

README.md

File metadata and controls

33 lines (27 loc) · 611 Bytes

@axa-fr/react-toolkit-form-summary

Installation

npm i @axa-fr/react-toolkit-form-summary
npm i @axa-fr/react-toolkit-alert

Import

import { Summary } from '@axa-fr/react-toolkit-form-summary';
import '@axa-fr/react-toolkit-alert/dist/af-alert.css';

Use

const SummaryForm = () => (
  <Summary
    messages={[
      <span>Field Author is required</span>,
      'Field PlaceName is required',
    ]}
    title="Formulaire invalide"
    classModifier="error"
    className="af-alert"
    isVisible={true}
  />
);
export default SummaryForm;