Neverending Programming Mistakes
    Have ideas to improve npm?Join in the discussion! »

    @essappstate/canopy-react-modal

    0.2.3 • Public • Published

    @essappstate/canopy-react-modal

    Creates a Bootstrap modal overlay Works with AppStateESS/Canopy.

    Install

    npm install --save-dev @essappstate/canopy-react-modal
    

    Properties

    Prop name Type Description
    onClose function Function to call on close of modal
    body string Content for modal body
    modalId string Id attribute of modal. Default is reactModal
    header string Title of modal
    footer string Content to place in footer. Will be followed by the close button

    Example

    <button 
        className="btn btn-outline-dark" 
        data-toggle="modal" 
        data-target="#reactModal">
            Open modal
    </button>
    <Modal body={<p>test</p>}/>
    

    Keywords

    Install

    npm i @essappstate/canopy-react-modal

    DownloadsWeekly Downloads

    5

    Version

    0.2.3

    License

    MIT

    Unpacked Size

    16.6 kB

    Total Files

    5

    Last publish

    Collaborators

    • avatar