UNPKG

2.2 kBTypeScriptView Raw
1import type { Assign } from "@ark-ui/react";
2import { Toast as ArkToast, type CreateToasterProps, type CreateToasterReturn, type ToasterBaseProps, createToaster } from "@ark-ui/react/toast";
3import { type HTMLChakraProps, type SlotRecipeProps, type UnstyledProp } from "../../styled-system";
4export { createToaster, type CreateToasterProps, type CreateToasterReturn };
5declare const useToastStyles: () => Record<string, import("../..").SystemStyleObject>;
6export { useToastStyles };
7export interface ToasterProps extends HTMLChakraProps<"div", ToasterBaseProps> {
8}
9export declare const Toaster: React.FC<ToasterProps>;
10export interface ToastRootBaseProps extends Assign<ArkToast.RootBaseProps, SlotRecipeProps<"toast">>, UnstyledProp {
11}
12export interface ToastRootProps extends HTMLChakraProps<"div", ToastRootBaseProps> {
13}
14export declare const ToastRoot: import("react").ForwardRefExoticComponent<ToastRootProps & import("react").RefAttributes<HTMLDivElement>>;
15export interface ToastCloseTriggerProps extends HTMLChakraProps<"button", ArkToast.CloseTriggerProps> {
16}
17export declare const ToastCloseTrigger: import("react").ForwardRefExoticComponent<ToastCloseTriggerProps & import("react").RefAttributes<HTMLButtonElement>>;
18export interface ToastTitleProps extends HTMLChakraProps<"div", ArkToast.TitleProps> {
19}
20export declare const ToastTitle: import("react").ForwardRefExoticComponent<ToastTitleProps & import("react").RefAttributes<HTMLDivElement>>;
21export interface ToastDescriptionProps extends HTMLChakraProps<"div", ArkToast.DescriptionProps> {
22}
23export declare const ToastDescription: import("react").ForwardRefExoticComponent<ToastDescriptionProps & import("react").RefAttributes<HTMLDivElement>>;
24export interface ToastActionTriggerProps extends HTMLChakraProps<"button", ArkToast.ActionTriggerProps> {
25}
26export declare const ToastActionTrigger: import("react").ForwardRefExoticComponent<ToastActionTriggerProps & import("react").RefAttributes<HTMLButtonElement>>;
27export interface ToastIndicatorProps extends HTMLChakraProps<"span"> {
28}
29export declare const ToastIndicator: import("react").ForwardRefExoticComponent<ToastIndicatorProps & import("react").RefAttributes<HTMLSpanElement>>;