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