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