UNPKG

@chakra-ui/react

Version:

Responsive and accessible React UI components built with React and Emotion

14 lines (13 loc) 586 B
import { type UseClipboardReturn } from "@ark-ui/react/clipboard"; import type { CodeBlockHighlighterProps } from "./types"; export interface CodeBlockCollapsible { contentId: string; collapsed: boolean; setCollapsed: (collapsed: boolean) => void; toggleCollapsed: () => void; } export interface UseCodeBlockContext extends CodeBlockHighlighterProps { collapsible: CodeBlockCollapsible; clipboard: UseClipboardReturn; } export declare const CodeBlockContextProvider: import("react").Provider<UseCodeBlockContext>, useCodeBlockContext: () => UseCodeBlockContext;