(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[619],{7219:function(e,s,r){Promise.resolve().then(r.bind(r,2844))},2844:function(e,s,r){"use strict";r.r(s),r.d(s,{default:function(){return V}});var n=r(4004),t=r(4978),i=r(65),a=r(9819),d=r(6739),o=r(5227),c=r(271),l=r(721),h=r(9524),x=r(988),p=r(4300),j=r(2433),Z=r(6551),m=r(8420),f=r(1753),u=r(9132),v=r(2161),b=r(8730),g=r(770),y=r(180),_=r(2190),w=r(4231),C=r(5536),I=r(1966),k=r(3375),M=r(3686),P=r(7098),A=r(9426),N=r(5891),O=r(5123),T=r(7354),$=r(1467),q=r(5527),E=r(1209),F=r(9513),R=r(959),D=r(2614),L=()=>{let{fragmentId:e,setFragmentId:s}=(0,t.useContext)(R.Z),r=e=>{s(e.target.hash)};return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(p.Z,{variant:"h3",fw:"semibold",children:"Table of Contents"}),(0,n.jsxs)(q.Z,{indent:!1,children:[(0,n.jsx)(E.Z,{onClick:r,children:(0,n.jsx)(x.Z,{variant:"transparent",href:"#modal-api",active:/#modal-api$/.test(e),"data-testid":"modal_api",children:"Modal API"})}),(0,n.jsx)(E.Z,{onClick:r,children:(0,n.jsx)(x.Z,{variant:"transparent",href:"#import",active:/#import$/.test(e),"data-testid":"import",children:"Import"})}),(0,n.jsx)(E.Z,{onClick:r,children:(0,n.jsx)(x.Z,{variant:"transparent",href:"#modal-props",active:/#modal-props$/.test(e),"data-testid":"modal_props",children:"Modal Props"})}),(0,n.jsx)(F.Z,{}),(0,n.jsx)(E.Z,{onClick:r,children:(0,n.jsx)(x.Z,{variant:"transparent",fw:"bold",href:"#system-props",active:/#system-props$/.test(e),"data-testid":"system_props",children:"System Props"})})]}),(0,n.jsx)(D.Z,{})]})},S=r(9362),z=r(176),B=r(1064);let G=(0,i.zo)(a.Z).withConfig({componentId:"sc-cceb773c-0"})(["width:100%;"]);function V(){let e=(0,C.Z)({query:{media:"(min-width: 1281px)"}}),s=(0,C.Z)({query:{media:"(max-width: 1280px)"}}),r=(0,C.Z)({query:{media:"(max-width: 768px)"}}),t=["modal-api","import","modal-props","system-props",...B.Z];return(0,n.jsx)(S.Z,{children:(0,n.jsxs)(d.Z,{children:[(0,n.jsx)(N.Z,{currentPage:"root/core/children"}),(0,n.jsxs)(o.Z,{display:"flex",children:[e&&(0,n.jsx)(c.Z,{children:(0,n.jsx)(l.Z,{fluid:!0,children:(0,n.jsx)($.Z,{})})}),(0,n.jsxs)(G,{borderLeft:r?"none":s?"none":"dark",borderRight:r?"none":"dark",children:[(0,n.jsx)(o.Z,{borderBottom:"dark",children:(0,n.jsx)(l.Z,{children:(0,n.jsxs)(h.Z,{children:[(0,n.jsx)(x.Z,{variant:"transparent",href:"/core",width:"auto","data-testid":"breadcrumbs_core",children:"core"}),(0,n.jsx)(I.Z,{}),(0,n.jsx)(p.Z,{variant:"body2",children:"api"}),(0,n.jsx)(I.Z,{}),(0,n.jsx)(x.Z,{variant:"transparent",href:"/core/api/react-modal",active:!0,width:"auto","data-testid":"breadcrumbs_react_modal",children:"react-modal"})]})})}),(0,n.jsxs)(l.Z,{fluid:!1,children:[(0,n.jsxs)(j.Z,{id:"modal-api",children:[(0,n.jsx)(p.Z,{variant:"h1",children:"React Modal API"}),(0,n.jsx)(p.Z,{variant:"body1",children:"API reference for the React Modal component from Modj.js. Learn about how to use the Modal component and all the valid props that can be supplied to this component."})]}),(0,n.jsxs)(j.Z,{id:"import",children:[(0,n.jsx)(p.Z,{variant:"h2",children:"Import "}),(0,n.jsx)(Z.Z,{variant:"filled",notched:!0,type:"script",fileName:(0,n.jsxs)(o.Z,{display:"flex",alignItems:"center",gap:4,children:[(0,n.jsx)(k.Z,{height:"2em",width:"1.5em"}),(0,n.jsx)(p.Z,{variant:"small",fs:1,children:"App.jsx"})]}),headerContent:(0,n.jsx)(n.Fragment,{children:(0,n.jsx)(m.Z,{arrow:!0,el:(0,n.jsx)(x.Z,{variant:"icon",href:"https://github.com/modjs-org/modjs/tree/main/packages/core/src/components/Modal",target:"_blank","data-testid":"import_github",children:(0,n.jsx)(M.Z,{})}),children:(0,n.jsx)(f.Z,{displayPosition:"left",children:(0,n.jsx)(p.Z,{variant:"small",color:"white",children:"View Source on Github"})})})}),children:"import { Modal } from '@modjs/core'"})]}),(0,n.jsxs)(j.Z,{id:"modal-props",pb:"normal",mt:16,children:[(0,n.jsx)(p.Z,{variant:"h2",children:"Modal Props"}),(0,n.jsx)(p.Z,{variant:"body1",children:"The following props are specific to the Modal component and can be applied to this component."}),(0,n.jsxs)(u.Z,{children:[(0,n.jsx)(v.Z,{children:(0,n.jsxs)(b.Z,{children:[(0,n.jsx)(g.Z,{children:"Name"}),(0,n.jsx)(g.Z,{children:"Type"}),(0,n.jsx)(g.Z,{children:"Default"}),(0,n.jsx)(g.Z,{children:"Description"})]})}),(0,n.jsxs)(y.Z,{children:[(0,n.jsxs)(b.Z,{children:[(0,n.jsx)(_.Z,{children:"children"}),(0,n.jsx)(_.Z,{children:(0,n.jsx)(w.Z,{color:"success",children:"node"})}),(0,n.jsx)(_.Z,{children:"-"}),(0,n.jsx)(_.Z,{children:"The content of the component."})]}),(0,n.jsxs)(b.Z,{children:[(0,n.jsx)(_.Z,{children:"toggleOpen"}),(0,n.jsxs)(_.Z,{children:[" ",(0,n.jsx)(w.Z,{color:"success",children:"node"})]}),(0,n.jsx)(_.Z,{children:(0,n.jsx)(w.Z,{color:"success",children:""})}),(0,n.jsx)(_.Z,{children:"Open icon for the component."})]}),(0,n.jsxs)(b.Z,{children:[(0,n.jsx)(_.Z,{children:"toggleClose"}),(0,n.jsx)(_.Z,{children:(0,n.jsx)(w.Z,{color:"success",children:"node"})}),(0,n.jsxs)(_.Z,{children:[" ",(0,n.jsx)(w.Z,{color:"success",children:""})]}),(0,n.jsx)(_.Z,{children:"Close icon for the component."})]})]})]})]}),(0,n.jsx)(T.Z,{}),(0,n.jsxs)(o.Z,{display:"flex",justifyContent:"space-between",my:32,children:[(0,n.jsxs)(x.Z,{href:"/core/api/react-message-area",variant:"inline",display:"flex",alignItems:"center","data-testid":"prev_message_area_api",children:[(0,n.jsx)(P.Z,{}),"MessageArea API"]}),(0,n.jsxs)(x.Z,{href:"/core/api/react-modal-content",variant:"inline",display:"flex",alignItems:"center","data-testid":"next_modal_content_api",children:["ModalContent API",(0,n.jsx)(A.Z,{})]})]})]}),(0,n.jsx)(O.Z,{})]}),(0,n.jsx)(z.Z,{defaultFragmentId:"#modal-api",sections:t,children:(0,n.jsx)(L,{})})]})]})})}}},function(e){e.O(0,[4293,65,6071,4663,8322,3375,1041,8470,9594,1744],function(){return e(e.s=7219)}),_N_E=e.O()}]);