All Downloads are FREE. Search and download functionalities are using the official Maven repository.

package.src.components.Alert.AlertGroupInline.tsx Maven / Gradle / Ivy

Go to download

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';




© 2015 - 2024 Weber Informatics LLC | Privacy Policy