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