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.

60 lines (51 loc) 1.29 kB
/** * @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 a11y text for the close button. */ closeButtonLabel?: string; /** * `true` to hide the close button. */ hideCloseButton?: boolean; /** * The a11y text for the icon. */ iconLabel?: string; /** * Notification kind. */ kind?: string; /** * `true` if the notification should be open. */ open?: boolean; /** * The subtitle. */ subtitle?: string; /** * The title. */ title?: string; } /** * Inline notification. * @element bx-inline-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 BXInlineNotification extends Component<ComponentProps> {} export default BXInlineNotification;