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