MCPcopy Index your code
hub / github.com/simstudioai/sim / Content

Function Content

packages/emcn/src/components/tooltip/tooltip.tsx:422–429  ·  view source on GitHub ↗

* Tooltip content, rendered in a cursor-following floating bubble. * * @example * ```tsx * * Tooltip text * * ```

({ className, children }: ContentProps)

Source from the content-addressed store, hash-verified

420 * ```
421 */
422function Content({ className, children }: ContentProps) {
423 const ctx = useTooltipContext('Content')
424 return (
425 <FloatingTooltip state={ctx.state} role='tooltip' id={ctx.contentId} className={className}>
426 {children}
427 </FloatingTooltip>
428 )
429}
430Content.displayName = 'Tooltip.Content'
431
432interface ShortcutProps {

Callers

nothing calls this directly

Calls 1

useTooltipContextFunction · 0.85

Tested by

no test coverage detected