@vectara/vectara-ui
Version:
Vectara's design system, codified as a React and Sass component library
19 lines (18 loc) • 689 B
TypeScript
import { ReactNode } from "react";
import { LinkProps } from "../link/types";
type LinkProvider = (linkConfig: LinkProps) => JSX.Element;
type PathProvider = () => string;
interface VuiContextType {
createLink: LinkProvider;
getPath: PathProvider;
DrawerTitle: keyof JSX.IntrinsicElements;
}
type Props = {
children: ReactNode;
linkProvider?: LinkProvider;
pathProvider?: PathProvider;
drawerTitle?: "h1" | "h2" | "h3" | "h4" | "h5" | "h6";
};
export declare const VuiContextProvider: ({ children, linkProvider, pathProvider, drawerTitle }: Props) => import("react/jsx-runtime").JSX.Element;
export declare const useVuiContext: () => VuiContextType;
export {};