ivt
Version:
Ivt Components Library
22 lines (19 loc) • 1.79 kB
TypeScript
import * as class_variance_authority_types from 'class-variance-authority/types';
import * as react_jsx_runtime from 'react/jsx-runtime';
import * as ToastPrimitives from '@radix-ui/react-toast';
import { VariantProps } from 'class-variance-authority';
import React__default from 'react';
declare const ToastProvider: React__default.FC<ToastPrimitives.ToastProviderProps>;
declare const ToastViewport: ({ className, ...props }: React__default.ComponentProps<typeof ToastPrimitives.Viewport>) => react_jsx_runtime.JSX.Element;
declare const toastVariants: (props?: ({
variant?: "default" | "destructive" | null | undefined;
} & class_variance_authority_types.ClassProp) | undefined) => string;
declare const Toast: ({ className, variant, ...props }: React__default.ComponentProps<typeof ToastPrimitives.Root> & VariantProps<typeof toastVariants>) => react_jsx_runtime.JSX.Element;
declare const ToastAction: ({ className, ...props }: React__default.ComponentProps<typeof ToastPrimitives.Action>) => react_jsx_runtime.JSX.Element;
declare const ToastClose: ({ className, ...props }: React__default.ComponentProps<typeof ToastPrimitives.Close>) => react_jsx_runtime.JSX.Element;
declare const ToastTitle: ({ className, ...props }: React__default.ComponentProps<typeof ToastPrimitives.Title>) => react_jsx_runtime.JSX.Element;
declare const ToastDescription: ({ className, ...props }: React__default.ComponentProps<typeof ToastPrimitives.Description>) => react_jsx_runtime.JSX.Element;
type ToastProps = React__default.ComponentPropsWithoutRef<typeof Toast>;
type ToastActionElement = React__default.ReactElement<typeof ToastAction>;
export { Toast, ToastAction, ToastClose, ToastDescription, ToastProvider, ToastTitle, ToastViewport };
export type { ToastActionElement, ToastProps };