UNPKG

@awsui/components-react

Version:

AWS UI is a collection of [React](https://reactjs.org/) components that help create intuitive, responsive, and accessible user experiences for web applications. It is developed by Amazon Web Services (AWS). This work is available under the terms of the [A

23 lines (22 loc) 858 B
import React from 'react'; import { BaseComponentProps } from '../internal/base-component'; import { ButtonProps } from '../button/interfaces'; export interface FlashbarProps extends BaseComponentProps { items: ReadonlyArray<FlashbarProps.MessageDefinition>; } export declare namespace FlashbarProps { interface MessageDefinition { header?: React.ReactNode; content?: React.ReactNode; dismissible?: boolean; dismissLabel?: string; loading?: boolean; type?: FlashbarProps.Type; action?: React.ReactNode; buttonText?: ButtonProps['children']; onButtonClick?: ButtonProps['onClick']; onDismiss?: ButtonProps['onClick']; } type Type = 'success' | 'warning' | 'info' | 'error'; } export default function Flashbar({ items, ...restProps }: FlashbarProps): JSX.Element;