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