UNPKG

carbon-custom-elements

Version:

A Carbon Design System variant that's as easy to use as native HTML elements, with no framework tax, no framework silo.

30 lines (27 loc) 878 B
/** * @license * * Copyright IBM Corp. 2019, 2020 * * This source code is licensed under the Apache-2.0 license found in the * LICENSE file in the root directory of this source tree. */ import { Component } from 'react'; interface ComponentProps { /** * The caption. */ caption?: string; } /** * Toast notification. * @element bx-toast-notification * @slot subtitle - The subtitle. * @slot title - The title. * @fires bx-notification-beingclosed * The custom event fired before this notification is being closed upon a user gesture. * Cancellation of this event stops the user-initiated action of closing this notification. * @fires bx-notification-closed - The custom event fired after this notification is closed upon a user gesture. */ declare class BXToastNotification extends Component<ComponentProps> {} export default BXToastNotification;