package.src.components.Dropdown.DropdownGroup.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 React from 'react';
import { css } from '@patternfly/react-styles';
import { MenuGroupProps, MenuGroup } from '../Menu';
/**
* See the MenuGroup section of the Menu documentation for additional props that may be passed.
*/
export interface DropdownGroupProps extends Omit {
/** Anything which can be rendered in a dropdown group. */
children: React.ReactNode;
/** Classes applied to root element of dropdown group */
className?: string;
/** Label of the dropdown group */
label?: string;
}
export const DropdownGroup: React.FunctionComponent = ({
children,
className,
label,
labelHeadingLevel = 'h1',
...props
}: DropdownGroupProps) => (
{children}
);
DropdownGroup.displayName = 'DropdownGroup';