MCPcopy Create free account
hub / github.com/simstudioai/sim / usePopoverContext

Function usePopoverContext

packages/emcn/src/components/popover/popover.tsx:190–196  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

188const PopoverContext = React.createContext<PopoverContextValue | null>(null)
189
190const usePopoverContext = () => {
191 const context = React.useContext(PopoverContext)
192 if (!context) {
193 throw new Error('Popover components must be used within a Popover')
194 }
195 return context
196}
197
198export interface PopoverProps extends PopoverPrimitive.PopoverProps {
199 /**

Callers 8

FolderContentsInnerFunction · 0.90
FolderContentsFunction · 0.90
NestedTagRendererFunction · 0.90
PopoverContextCaptureFunction · 0.90
TagDropdownBackButtonFunction · 0.90
popover.tsxFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected