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

package.src.components.OverflowMenu.OverflowMenuItem.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/OverflowMenu/overflow-menu';
import { OverflowMenuContext } from './OverflowMenuContext';

export interface OverflowMenuItemProps extends React.HTMLProps {
  /** Any elements that can be rendered in the menu */
  children?: any;
  /** Additional classes added to the OverflowMenuItem */
  className?: string;
  /** Modifies the overflow menu item visibility */
  isPersistent?: boolean;
}

export const OverflowMenuItem: React.FunctionComponent = ({
  className,
  children,
  isPersistent = false
}: OverflowMenuItemProps) => (
  
    {(value) =>
      (isPersistent || !value.isBelowBreakpoint) && (
        
{children}
) }
); OverflowMenuItem.displayName = 'OverflowMenuItem';




© 2015 - 2024 Weber Informatics LLC | Privacy Policy