UNPKG

@base-ui-components/react

Version:

Base UI is a library of headless ('unstyled') React components and low-level hooks. You gain complete control over your app's CSS and accessibility features.

24 lines 804 B
import * as React from 'react'; import type { BaseUIComponentProps } from "../../utils/types.js"; /** * A container for the contents of a toast. * Renders a `<div>` element. * * Documentation: [Base UI Toast](https://base-ui.com/react/components/toast) */ export declare const ToastContent: React.ForwardRefExoticComponent<ToastContentProps & React.RefAttributes<HTMLDivElement>>; export interface ToastContentState { /** * Whether the toast viewport is expanded. */ expanded: boolean; /** * Whether the toast is behind the frontmost toast in the stack. */ behind: boolean; } export interface ToastContentProps extends BaseUIComponentProps<'div', ToastContent.State> {} export declare namespace ToastContent { type State = ToastContentState; type Props = ToastContentProps; }