If we want to create a dropdown panel (The Basic Dropdown is provided for flexibility in allowing various content within a dropdown) we need to add the dropdownItems like []
This create a div under the panel.
import { FunctionComponent, HTMLProps, ReactNode } from 'react';
import { OneOf } from '../../helpers/typeUtils';
import { DropdownPosition, DropdownDirection } from './dropdownConstants';
export interface DropdownProps extends HTMLProps<HTMLDivElement> {
children?: ReactNode;
dropdownItems: ReactNode[];
isPlain?: boolean;
isOpen?: boolean;
isAction?: boolean;
onSelect(event: React.SyntheticEvent<HTMLDivElement>): void;
position?: OneOf<typeof DropdownPosition, keyof typeof DropdownPosition>;
direction?: OneOf<typeof DropdownDirection, keyof typeof DropdownDirection>;
toggle?: ReactNode;
}
declare const Dropdown: FunctionComponent<DropdownProps>;
export default Dropdown;
Closing because this issue was complete
Most helpful comment
Closing because this issue was complete