package.src.components.Alert.AlertGroupInline.tsx Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of react-core Show documentation
Show all versions of react-core Show documentation
This library provides a set of common React components for use with the PatternFly reference implementation.
The newest version!
import * as React from 'react';
import { css } from '@patternfly/react-styles';
import styles from '@patternfly/react-styles/css/components/Alert/alert-group';
import { AlertGroupProps } from './AlertGroup';
import { AlertProps } from '../Alert';
export const AlertGroupInline: React.FunctionComponent = ({
className,
children,
isToast,
isLiveRegion,
onOverflowClick,
overflowMessage,
...rest
}: AlertGroupProps) => (
{React.Children.toArray(children).map((alert, index) => (
- ).props?.id || index}>{alert}
))}
{overflowMessage && (
-
)}
);
AlertGroupInline.displayName = 'AlertGroupInline';