UNPKG

polen

Version:

A framework for delightful GraphQL developer portals

33 lines 1.16 kB
/** * GraphQL Identifier Popover using Radix Themes * * Displays rich information about GraphQL identifiers on hover/click */ import type { React } from '#dep/react/index'; import type { Documentation } from '../schema-integration.js'; import type { Identifier } from '../types.js'; export interface GraphQLIdentifierPopoverProps { /** The identifier being shown */ identifier: Identifier; /** Documentation from schema */ documentation: Documentation; /** Whether this identifier has an error */ hasError?: boolean; /** Reference URL for "View docs" link */ referenceUrl: string; /** Whether popover is open */ open: boolean; /** Whether popover is pinned */ isPinned: boolean; /** Callback when open state changes */ onOpenChange: (open: boolean) => void; /** Callback to navigate to docs */ onNavigate?: (url: string) => void; /** The trigger element */ children: React.ReactNode; } /** * Popover content for GraphQL identifiers */ export declare const GraphQLIdentifierPopover: React.FC<GraphQLIdentifierPopoverProps>; //# sourceMappingURL=GraphQLIdentifierPopover.d.ts.map