(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4647],{9492:function(e,r,n){Promise.resolve().then(n.bind(n,9003))},9003:function(e,r,n){"use strict";n.r(r),n.d(r,{default:function(){return V}});var i=n(4004),s=n(4978),c=n(65),t=n(9819),o=n(6739),d=n(5227),a=n(271),l=n(721),h=n(9524),x=n(988),j=n(4300),Z=n(2433),p=n(6551),m=n(8420),f=n(1753),u=n(9132),v=n(2161),b=n(8730),y=n(770),w=n(180),g=n(2190),_=n(4231),A=n(5536),k=n(1966),C=n(3375),I=n(3686),P=n(7098),N=n(9426),z=n(5891),T=n(5123),$=n(7354),q=n(1467),E=n(5527),F=n(1209),O=n(9513),R=n(959),D=n(2614),L=()=>{let{fragmentId:e,setFragmentId:r}=(0,s.useContext)(R.Z),n=e=>{r(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)(E.Z,{indent:!1,children:[(0,i.jsx)(F.Z,{onClick:n,children:(0,i.jsx)(x.Z,{variant:"transparent",href:"#accordion-api",active:/#accordion-api$/.test(e),"data-testid":"accordion_api",children:"Accordion API"})}),(0,i.jsx)(F.Z,{onClick:n,children:(0,i.jsx)(x.Z,{variant:"transparent",href:"#import",active:/#import$/.test(e),"data-testid":"import",children:"Import"})}),(0,i.jsx)(F.Z,{onClick:n,children:(0,i.jsx)(x.Z,{variant:"transparent",href:"#accordion-props",active:/#accordion-props$/.test(e),"data-testid":"accordion_props",children:"Accordion Props"})}),(0,i.jsx)(O.Z,{}),(0,i.jsx)(F.Z,{onClick:n,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)(D.Z,{})]})},S=n(9362),B=n(176),G=n(1064);let M=(0,c.zo)(t.Z).withConfig({componentId:"sc-91e82866-0"})(["width:100%;"]);function V(){let e=(0,A.Z)({query:{media:"(min-width: 1281px)"}}),r=(0,A.Z)({query:{media:"(max-width: 1280px)"}}),n=(0,A.Z)({query:{media:"(max-width: 768px)"}}),s=["accordion-api","import","accordion-props","system-props",...G.Z];return(0,i.jsx)(S.Z,{children:(0,i.jsxs)(o.Z,{children:[(0,i.jsx)(z.Z,{currentPage:"root/core/children"}),(0,i.jsxs)(d.Z,{display:"flex",children:[e&&(0,i.jsx)(a.Z,{children:(0,i.jsx)(l.Z,{fluid:!0,children:(0,i.jsx)(q.Z,{})})}),(0,i.jsxs)(M,{borderLeft:n?"none":r?"none":"dark",borderRight:n?"none":"dark",children:[(0,i.jsx)(d.Z,{borderBottom:"dark",children:(0,i.jsx)(l.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)(k.Z,{}),(0,i.jsx)(j.Z,{variant:"body2",children:"api"}),(0,i.jsx)(k.Z,{}),(0,i.jsx)(x.Z,{variant:"transparent",href:"/core/api/react-accordion",active:!0,width:"auto","data-testid":"breadcrumbs_react_accordion",children:"react-accordion"})]})})}),(0,i.jsxs)(l.Z,{fluid:!1,children:[(0,i.jsxs)(Z.Z,{id:"accordion-api",children:[(0,i.jsx)(j.Z,{variant:"h1",children:"React Accordion API"}),(0,i.jsx)(j.Z,{variant:"body1",children:"API reference for the React Accordion component from Modj.js. Learn about how to use the Accordion 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)(d.Z,{display:"flex",alignItems:"center",gap:4,children:[(0,i.jsx)(C.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)(m.Z,{arrow:!0,el:(0,i.jsx)(x.Z,{variant:"icon",target:"_blank",href:"https://github.com/modjs-org/modjs/tree/main/packages/core/src/components/Accordion","data-testid":"import_github",children:(0,i.jsx)(I.Z,{})}),children:(0,i.jsx)(f.Z,{displayPosition:"left",children:(0,i.jsx)(j.Z,{variant:"small",color:"white",children:"View Source on Github"})})})}),children:"import { Accordion } from '@modjs/core'"})]}),(0,i.jsxs)(Z.Z,{id:"accordion-props",pb:"normal",mt:16,children:[(0,i.jsx)(j.Z,{variant:"h2",children:"Accordion Props"}),(0,i.jsx)(j.Z,{variant:"body1",children:"The following props are specific to the Accordion 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)(w.Z,{children:[(0,i.jsxs)(b.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)(b.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)(b.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 a notched effect."})]}),(0,i.jsxs)(b.Z,{children:[(0,i.jsx)(g.Z,{children:"defaultOpen"}),(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 Accordion will be open by default."})]})]})]})]}),(0,i.jsx)($.Z,{}),(0,i.jsxs)(d.Z,{display:"flex",justifyContent:"space-between",my:32,children:[(0,i.jsxs)(x.Z,{href:"/core/customization",variant:"inline",display:"flex",alignItems:"center","data-testid":"prev_customization",children:[(0,i.jsx)(P.Z,{}),"Customization"]}),(0,i.jsxs)(x.Z,{href:"/core/api/react-accordion-content",variant:"inline",display:"flex",alignItems:"center","data-testid":"next_accordion_content_api",children:["AccordionContent API",(0,i.jsx)(N.Z,{})]})]})]}),(0,i.jsx)(T.Z,{})]}),(0,i.jsx)(B.Z,{defaultFragmentId:"#accordion-api",sections:s,children:(0,i.jsx)(L,{})})]})]})})}}},function(e){e.O(0,[4293,65,6071,4663,8322,3375,1041,8470,9594,1744],function(){return e(e.s=9492)}),_N_E=e.O()}]);