import * as React from 'react'; import { css } from '@patternfly/react-styles'; import { DropdownContext } from './dropdownConstants'; export interface DropdownGroupProps extends Omit, 'label'> { /** Checkboxes within group */ children?: React.ReactNode; /** Additional classes added to the DropdownGroup control */ className?: string; /** Group label */ label?: React.ReactNode; } export const DropdownGroup: React.FunctionComponent = ({ children = null, className = '', label = '', ...props }: DropdownGroupProps) => ( {({ sectionClass, sectionTitleClass, sectionComponent }) => { const SectionComponent = sectionComponent as any; return ( {label && (

# {label}

)}

{children}

); }} ); DropdownGroup.displayName = 'DropdownGroup';