(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[371],{3484:function(e,s,r){Promise.resolve().then(r.bind(r,240))},240:function(e,s,r){"use strict";r.r(s),r.d(s,{default:function(){return V}});var n=r(4004),i=r(4978),t=r(65),c=r(9819),a=r(6739),d=r(5227),l=r(271),o=r(721),h=r(9524),x=r(988),j=r(4300),Z=r(2433),p=r(6551),b=r(8420),m=r(1753),f=r(9132),u=r(2161),k=r(8730),v=r(770),y=r(180),w=r(2190),g=r(4231),_=r(5536),S=r(1966),C=r(3375),I=r(3686),P=r(7098),A=r(9426),L=r(5891),N=r(5123),R=r(7354),T=r(1467),$=r(5527),q=r(1209),D=r(9513),E=r(959),F=r(2614),M=()=>{let{fragmentId:e,setFragmentId:s}=(0,i.useContext)(E.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)($.Z,{indent:!1,children:[(0,n.jsx)(q.Z,{onClick:r,children:(0,n.jsx)(x.Z,{variant:"transparent",href:"#snackbar-api",active:/#snackbar-api$/.test(e),"data-testid":"snackbar_api",children:"Snackbar API"})}),(0,n.jsx)(q.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)(q.Z,{onClick:r,children:(0,n.jsx)(x.Z,{variant:"transparent",href:"#snackbar-props",active:/#snackbar-props$/.test(e),"data-testid":"snackbar_props",children:"Snackbar Props"})}),(0,n.jsx)(D.Z,{}),(0,n.jsx)(q.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)(F.Z,{})]})},O=r(9362),z=r(176),B=r(1064);let G=(0,t.zo)(c.Z).withConfig({componentId:"sc-5120a884-0"})(["width:100%;"]);function V(){let e=(0,_.Z)({query:{media:"(min-width: 1281px)"}}),s=(0,_.Z)({query:{media:"(max-width: 1280px)"}}),r=(0,_.Z)({query:{media:"(max-width: 768px)"}}),i=["snackbar-api","import","snackbar-props","system-props",...B.Z];return(0,n.jsx)(O.Z,{children:(0,n.jsxs)(a.Z,{children:[(0,n.jsx)(L.Z,{currentPage:"root/core/children"}),(0,n.jsxs)(d.Z,{display:"flex",children:[e&&(0,n.jsx)(l.Z,{children:(0,n.jsx)(o.Z,{fluid:!0,children:(0,n.jsx)(T.Z,{})})}),(0,n.jsxs)(G,{borderLeft:r?"none":s?"none":"dark",borderRight:r?"none":"dark",children:[(0,n.jsx)(d.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)(S.Z,{}),(0,n.jsx)(j.Z,{variant:"body2",children:"api"}),(0,n.jsx)(S.Z,{}),(0,n.jsx)(x.Z,{variant:"transparent",href:"/core/api/react-snackbar",active:!0,width:"auto","data-testid":"breadcrumbs_react_snackbar",children:"react-snackbar"})]})})}),(0,n.jsxs)(o.Z,{fluid:!1,children:[(0,n.jsxs)(Z.Z,{id:"snackbar-api",children:[(0,n.jsx)(j.Z,{variant:"h1",children:"React Snackbar API"}),(0,n.jsx)(j.Z,{variant:"body1",children:"API reference for the React Snackbar component from Modj.js. Learn about how to use the Snackbar 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)(d.Z,{display:"flex",alignItems:"center",gap:4,children:[(0,n.jsx)(C.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)(b.Z,{arrow:!0,el:(0,n.jsx)(x.Z,{variant:"icon",href:"https://github.com/modjs-org/modjs/tree/main/packages/core/src/components/Snackbar",target:"_blank","data-testid":"import_github",children:(0,n.jsx)(I.Z,{})}),children:(0,n.jsx)(m.Z,{displayPosition:"left",children:(0,n.jsx)(j.Z,{variant:"small",color:"white",children:"View Source on Github"})})})}),children:"import { Snackbar } from '@modjs/core'"})]}),(0,n.jsxs)(Z.Z,{id:"snackbar-props",pb:"normal",mt:16,children:[(0,n.jsx)(j.Z,{variant:"h2",children:"Snackbar Props"}),(0,n.jsx)(j.Z,{variant:"body1",children:"The following props are specific to the Snackbar component and can be applied to this component."}),(0,n.jsxs)(f.Z,{children:[(0,n.jsx)(u.Z,{children:(0,n.jsxs)(k.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)(k.Z,{children:[(0,n.jsx)(w.Z,{children:"children"}),(0,n.jsx)(w.Z,{children:(0,n.jsx)(g.Z,{color:"success",children:"node"})}),(0,n.jsx)(w.Z,{children:"-"}),(0,n.jsx)(w.Z,{children:"The content of the Snackbar."})]}),(0,n.jsxs)(k.Z,{children:[(0,n.jsx)(w.Z,{children:"variant"}),(0,n.jsx)(w.Z,{children:(0,n.jsx)(g.Z,{color:"success",children:'"success" "error" "filled"'})}),(0,n.jsx)(w.Z,{children:(0,n.jsx)(g.Z,{color:"success",children:'"filled"'})}),(0,n.jsx)(w.Z,{children:"Applies different styles based on variant."})]}),(0,n.jsxs)(k.Z,{children:[(0,n.jsx)(w.Z,{children:"notched"}),(0,n.jsx)(w.Z,{children:(0,n.jsx)(g.Z,{color:"success",children:"boolean"})}),(0,n.jsx)(w.Z,{children:(0,n.jsx)(g.Z,{color:"success",children:"false"})}),(0,n.jsx)(w.Z,{children:"If true, the component will have notched effect."})]}),(0,n.jsxs)(k.Z,{children:[(0,n.jsx)(w.Z,{children:"visible"}),(0,n.jsx)(w.Z,{children:(0,n.jsx)(g.Z,{color:"success",children:"boolean | string"})}),(0,n.jsx)(w.Z,{children:"-"}),(0,n.jsx)(w.Z,{children:"Control the visibility of the Snackbar."})]}),(0,n.jsxs)(k.Z,{children:[(0,n.jsx)(w.Z,{children:"timeout"}),(0,n.jsx)(w.Z,{children:(0,n.jsx)(g.Z,{color:"success",children:"number"})}),(0,n.jsx)(w.Z,{children:(0,n.jsx)(g.Z,{color:"success",children:"5000 ms"})}),(0,n.jsx)(w.Z,{children:"Control the visibility timeout of the Snackbar."})]}),(0,n.jsxs)(k.Z,{children:[(0,n.jsx)(w.Z,{children:"displayPosition"}),(0,n.jsx)(w.Z,{children:(0,n.jsx)(g.Z,{color:"success",children:'"topRight" "topLeft" "bottomRight" "bottomLeft"'})}),(0,n.jsx)(w.Z,{children:(0,n.jsx)(g.Z,{color:"success",children:'"topLeft"'})}),(0,n.jsx)(w.Z,{children:"Display position of the Snackbar."})]})]})]})]}),(0,n.jsx)(R.Z,{}),(0,n.jsxs)(d.Z,{display:"flex",justifyContent:"space-between",my:32,children:[(0,n.jsxs)(x.Z,{href:"/core/api/react-slideshow-media",variant:"inline",display:"flex",alignItems:"center","data-testid":"prev_slideshow_media_api",children:[(0,n.jsx)(P.Z,{}),"SlideshowMedia API"]}),(0,n.jsxs)(x.Z,{href:"/core/api/react-snackbar-content",variant:"inline",display:"flex",alignItems:"center","data-testid":"next_snackbar_content_api",children:["SnackbarContent API",(0,n.jsx)(A.Z,{})]})]})]}),(0,n.jsx)(N.Z,{})]}),(0,n.jsx)(z.Z,{defaultFragmentId:"#snackbar-api",sections:i,children:(0,n.jsx)(M,{})})]})]})})}}},function(e){e.O(0,[4293,65,6071,4663,8322,3375,1041,8470,9594,1744],function(){return e(e.s=3484)}),_N_E=e.O()}]);