@synergycodes/overflow-ui
Version:
A React library for creating node-based UIs and diagram-driven applications. Perfect for React Flow users, providing ready-to-use node templates and components that work seamlessly with React Flow's ecosystem.
37 lines (36 loc) • 1.02 kB
TypeScript
import { SnackbarVariant } from './types';
export type SnackbarProps = {
/**
* Visual style variant of the snackbar
*/
variant: SnackbarVariant;
/**
* Main message displayed in the snackbar
*/
title: string;
/**
* Optional secondary message displayed below the title
*/
subtitle?: string;
/**
* Label for the action button
*/
buttonLabel?: string;
/**
* Callback fired when the action button is clicked
*/
onButtonClick?: () => void;
/**
* Whether to show the close button
*/
close?: boolean;
/**
* Callback fired when the snackbar is closed
*/
onClose?: () => void;
};
/**
* A Snackbar component that displays brief messages about app processes.
* The snackbar appears at the bottom of the screen and automatically disappears after a few seconds.
*/
export declare const Snackbar: import('react').ForwardRefExoticComponent<SnackbarProps & import('react').RefAttributes<HTMLDivElement>>;