UNPKG

@vectara/vectara-ui

Version:

Vectara's design system, codified as a React and Sass component library

25 lines (24 loc) 955 B
import { ReactNode } from "react"; import { LinkProps } from "../link/types"; import { Theme } from "./Theme"; type LinkProvider = (linkConfig: LinkProps) => JSX.Element; type PathProvider = () => string; interface VuiContextType { createLink: LinkProvider; getPath: PathProvider; DrawerTitle: keyof JSX.IntrinsicElements; getThemeStyle: (theme: "dark" | "light") => Record<string, string>; portalContainer?: HTMLElement; } type Props = { children: ReactNode; linkProvider?: LinkProvider; pathProvider?: PathProvider; drawerTitle?: "h1" | "h2" | "h3" | "h4" | "h5" | "h6"; theme?: Theme; isThemeIsolated?: boolean; portalContainer?: HTMLElement; }; export declare const VuiContextProvider: ({ children, linkProvider, pathProvider, drawerTitle, theme, portalContainer, isThemeIsolated }: Props) => import("react/jsx-runtime").JSX.Element; export declare const useVuiContext: () => VuiContextType; export {};