(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4438],{5887:function(e,s,r){Promise.resolve().then(r.bind(r,6461))},6461:function(e,s,r){"use strict";r.r(s),r.d(s,{default:function(){return V}});var n=r(4004),i=r(4978),a=r(65),c=r(9819),t=r(6739),l=r(5227),d=r(271),o=r(721),h=r(9524),x=r(988),j=r(4300),Z=r(2433),p=r(6551),m=r(8420),f=r(1753),u=r(9132),g=r(2161),b=r(8730),v=r(770),y=r(180),w=r(2190),_=r(4231),A=r(5536),C=r(1966),k=r(3375),I=r(3686),M=r(7098),P=r(9426),N=r(5891),T=r(5123),L=r(7354),$=r(1467),q=r(5527),z=r(1209),E=r(9513),F=r(959),R=r(2614),D=()=>{let{fragmentId:e,setFragmentId:s}=(0,i.useContext)(F.Z),r=e=>{s(e.target.hash)};return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(j.Z,{variant:"h3",fw:"semibold",children:"Table of Contents"}),(0,n.jsxs)(q.Z,{indent:!1,children:[(0,n.jsx)(z.Z,{onClick:r,children:(0,n.jsx)(x.Z,{variant:"transparent",href:"#message-area-api",active:/#message-area-api$/.test(e),"data-testid":"message_area_api",children:"MessageArea API"})}),(0,n.jsx)(z.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)(z.Z,{onClick:r,children:(0,n.jsx)(x.Z,{variant:"transparent",href:"#message-area-props",active:/#message-area-props$/.test(e),"data-tesid":"message_area_props",children:"MessageArea Props"})}),(0,n.jsx)(E.Z,{}),(0,n.jsx)(z.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)(R.Z,{})]})},O=r(9362),S=r(176),B=r(1064);let G=(0,a.zo)(c.Z).withConfig({componentId:"sc-f6394002-0"})(["width:100%;"]);function V(){let e=(0,A.Z)({query:{media:"(min-width: 1281px)"}}),s=(0,A.Z)({query:{media:"(max-width: 1280px)"}}),r=(0,A.Z)({query:{media:"(max-width: 768px)"}}),i=["message-area-api","import","message-area-props","system-props",...B.Z];return(0,n.jsx)(O.Z,{children:(0,n.jsxs)(t.Z,{children:[(0,n.jsx)(N.Z,{currentPage:"root/core/children"}),(0,n.jsxs)(l.Z,{display:"flex",children:[e&&(0,n.jsx)(d.Z,{children:(0,n.jsx)(o.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)(l.Z,{borderBottom:"dark",children:(0,n.jsx)(o.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)(C.Z,{}),(0,n.jsx)(j.Z,{variant:"body2",children:"api"}),(0,n.jsx)(C.Z,{}),(0,n.jsx)(x.Z,{variant:"transparent",href:"/core/api/react-message-area",active:!0,width:"auto","data-testid":"breadcrumbs_react_message_area",children:"react-message-area"})]})})}),(0,n.jsxs)(o.Z,{fluid:!1,children:[(0,n.jsxs)(Z.Z,{id:"message-area-api",children:[(0,n.jsx)(j.Z,{variant:"h1",children:"React MessageArea API"}),(0,n.jsx)(j.Z,{variant:"body1",children:"API reference for the React MessageArea component from Modj.js. Learn about how to use the MessageArea component and all the valid props that can be supplied to this component."})]}),(0,n.jsxs)(Z.Z,{id:"import",children:[(0,n.jsx)(j.Z,{variant:"h2",children:"Import "}),(0,n.jsx)(p.Z,{variant:"filled",notched:!0,type:"script",fileName:(0,n.jsxs)(l.Z,{display:"flex",alignItems:"center",gap:4,children:[(0,n.jsx)(k.Z,{height:"2em",width:"1.5em"}),(0,n.jsx)(j.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/MessageArea",target:"_blank","data-testid":"import_github",children:(0,n.jsx)(I.Z,{})}),children:(0,n.jsx)(f.Z,{displayPosition:"left",children:(0,n.jsx)(j.Z,{variant:"small",color:"white",children:"View Source on Github"})})})}),children:"import { MessageArea } from '@modjs/core'"})]}),(0,n.jsxs)(Z.Z,{id:"message-area-props",pb:"normal",mt:16,children:[(0,n.jsx)(j.Z,{variant:"h2",children:"MessageArea Props"}),(0,n.jsx)(j.Z,{variant:"body1",children:"The following props are specific to the MessageArea component and can be applied to this component."}),(0,n.jsxs)(u.Z,{children:[(0,n.jsx)(g.Z,{children:(0,n.jsxs)(b.Z,{children:[(0,n.jsx)(v.Z,{children:"Name"}),(0,n.jsx)(v.Z,{children:"Type"}),(0,n.jsx)(v.Z,{children:"Default"}),(0,n.jsx)(v.Z,{children:"Description"})]})}),(0,n.jsxs)(y.Z,{children:[(0,n.jsxs)(b.Z,{children:[(0,n.jsx)(w.Z,{children:"variant"}),(0,n.jsx)(w.Z,{children:(0,n.jsx)(_.Z,{color:"success",children:'"filled" "outlined" "transparent"'})}),(0,n.jsx)(w.Z,{children:(0,n.jsx)(_.Z,{color:"success",children:'"filled"'})}),(0,n.jsx)(w.Z,{children:"Applies different styles based on variant."})]}),(0,n.jsxs)(b.Z,{children:[(0,n.jsx)(w.Z,{children:"notched"}),(0,n.jsx)(w.Z,{children:(0,n.jsx)(_.Z,{color:"success",children:"boolean"})}),(0,n.jsx)(w.Z,{children:(0,n.jsx)(_.Z,{color:"success",children:"false"})}),(0,n.jsx)(w.Z,{children:"If true, the component will have notched effect."})]}),(0,n.jsxs)(b.Z,{children:[(0,n.jsx)(w.Z,{children:"minLength"}),(0,n.jsx)(w.Z,{children:(0,n.jsx)(_.Z,{color:"success",children:"number"})}),(0,n.jsx)(w.Z,{children:(0,n.jsx)(_.Z,{color:"success",children:"1"})}),(0,n.jsx)(w.Z,{children:"The minimum length of the field."})]}),(0,n.jsxs)(b.Z,{children:[(0,n.jsx)(w.Z,{children:"maxLength"}),(0,n.jsx)(w.Z,{children:(0,n.jsx)(_.Z,{color:"success",children:"number"})}),(0,n.jsx)(w.Z,{children:(0,n.jsx)(_.Z,{color:"success",children:"5000"})}),(0,n.jsx)(w.Z,{children:"The maximum length of the field."})]}),(0,n.jsxs)(b.Z,{children:[(0,n.jsx)(w.Z,{children:"autoComplete"}),(0,n.jsx)(w.Z,{children:(0,n.jsx)(_.Z,{color:"success",children:"string"})}),(0,n.jsx)(w.Z,{children:(0,n.jsx)(_.Z,{color:"success",children:'"off"'})}),(0,n.jsx)(w.Z,{children:"Controls whether the field can be auto completed by the browser."})]}),(0,n.jsxs)(b.Z,{children:[(0,n.jsx)(w.Z,{children:"type"}),(0,n.jsx)(w.Z,{children:(0,n.jsx)(_.Z,{color:"success",children:"string"})}),(0,n.jsx)(w.Z,{children:(0,n.jsx)(_.Z,{color:"success",children:'"text"'})}),(0,n.jsx)(w.Z,{children:"Type of the component."})]}),(0,n.jsxs)(b.Z,{children:[(0,n.jsx)(w.Z,{children:"rows"}),(0,n.jsx)(w.Z,{children:(0,n.jsx)(_.Z,{color:"success",children:"string"})}),(0,n.jsx)(w.Z,{children:(0,n.jsx)(_.Z,{color:"success",children:'"9"'})}),(0,n.jsx)(w.Z,{children:"Number of rows of the component."})]}),(0,n.jsxs)(b.Z,{children:[(0,n.jsx)(w.Z,{children:"resize"}),(0,n.jsx)(w.Z,{children:(0,n.jsx)(_.Z,{color:"success",children:"string"})}),(0,n.jsx)(w.Z,{children:(0,n.jsx)(_.Z,{color:"success",children:'"both"'})}),(0,n.jsx)(w.Z,{children:"Controls whether the component is resizable."})]})]})]})]}),(0,n.jsx)(L.Z,{}),(0,n.jsxs)(l.Z,{display:"flex",justifyContent:"space-between",my:32,children:[(0,n.jsxs)(x.Z,{href:"/core/api/react-main",variant:"inline",display:"flex",alignItems:"center","data-testid":"prev_main_api",children:[(0,n.jsx)(M.Z,{}),"Main API"]}),(0,n.jsxs)(x.Z,{href:"/core/api/react-modal",variant:"inline",display:"flex",alignItems:"center","data-testid":"next_modal_api",children:["Modal API",(0,n.jsx)(P.Z,{})]})]})]}),(0,n.jsx)(T.Z,{})]}),(0,n.jsx)(S.Z,{defaultFragmentId:"#message-area-api",sections:i,children:(0,n.jsx)(D,{})})]})]})})}}},function(e){e.O(0,[4293,65,6071,4663,8322,3375,1041,8470,9594,1744],function(){return e(e.s=5887)}),_N_E=e.O()}]);