@linzjs/step-ag-grid
Version:
[](https://github.com/semantic-release/semantic-release) > Reusable [ag-grid](https://www.ag-grid.com/) component for LINZ / Toitū te whenua.
26 lines (25 loc) • 1.18 kB
TypeScript
import { ForwardedRef, ReactNode } from 'react';
import { BaseProps, EventHandler, RadioChangeEvent } from '../types';
export interface MenuRadioGroupProps extends BaseProps {
/**
* Optionally set the radio group name.
*
* The name will be passed to the `onRadioChange` event.
* It's useful for identifying radio groups if you attach the same event handler to multiple groups.
*/
name?: string;
/**
* Set value of the radio group.
*
* The child menu item which has the same value (strict equality ===) as the
* radio group is marked as checked.
*/
value?: any;
children?: ReactNode;
/**
* Event fired when a child menu item is clicked (selected).
*/
onRadioChange?: EventHandler<RadioChangeEvent>;
}
export declare const MenuRadioGroupFr: ({ "aria-label": ariaLabel, className, name, value, onRadioChange, ...restProps }: MenuRadioGroupProps, externalRef: ForwardedRef<HTMLUListElement>) => import("react/jsx-runtime").JSX.Element;
export declare const MenuRadioGroup: import("react").ForwardRefExoticComponent<Omit<MenuRadioGroupProps, "ref"> & import("react").RefAttributes<HTMLUListElement>>;