carbon-react
Version:
A library of reusable React components for easily building user interfaces.
26 lines (25 loc) • 1.1 kB
TypeScript
declare const StyledPortal: import("styled-components").StyledComponent<({ children, className, id, onReposition, inertOptOut, }: import("../portal/portal").PortalProps) => import("react").JSX.Element, any, {
theme: object;
} & {
align?: "left" | "center" | "right";
alignY?: "top" | "center" | "bottom";
isNotice?: boolean;
}, "theme">;
type ToastStyleProps = {
align?: "left" | "center" | "right";
alignY?: "top" | "center" | "bottom";
maxWidth?: string;
isNotice?: boolean;
isNotification?: boolean;
variant: "error" | "info" | "success" | "warning" | "neutral";
};
declare const StyledToast: import("styled-components").StyledComponent<"div", any, ToastStyleProps, never>;
declare const StyledToastContent: import("styled-components").StyledComponent<"div", any, {
isNotice?: boolean;
isDismiss?: boolean;
}, never>;
declare const ToastWrapper: import("styled-components").StyledComponent<"div", any, {
align?: "left" | "center" | "right";
isNotice?: boolean;
}, never>;
export { StyledPortal, StyledToast, StyledToastContent, ToastWrapper };