UNPKG

@atlaskit/dropdown-menu

Version:

A dropdown menu displays a list of actions or options to a user.

26 lines (25 loc) 870 B
import React from 'react'; import { type SectionProps } from '@atlaskit/menu'; interface DropdownItemRadioGroupProps extends SectionProps { id: string; } interface RadioGroupContextProps { id: string; radioGroupState: { [key: string]: boolean | undefined; }; selectRadioItem: (id: string, value: boolean) => void; } /** * __Radio group context__ * Context provider that wraps each DropdownItemRadioGroup */ export declare const RadioGroupContext: React.Context<RadioGroupContextProps>; /** * __Dropdown item radio group__ * Store which manages the selection state for each DropdownItemRadio * across mount and unmounts. * */ declare const DropdownItemRadioGroup: ({ children, hasSeparator, id, isList, isScrollable, testId, title, ...rest }: DropdownItemRadioGroupProps) => React.JSX.Element; export default DropdownItemRadioGroup;