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