@base-ui-components/react
Version:
Base UI is a library of headless ('unstyled') React components and low-level hooks. You gain complete control over your app's CSS and accessibility features.
43 lines (42 loc) • 1.47 kB
TypeScript
import * as React from 'react';
import { BaseUIComponentProps } from '../../utils/types.js';
/**
* Groups related radio items.
* Renders a `<div>` element.
*/
declare const MenuRadioGroup: React.ForwardRefExoticComponent<MenuRadioGroup.Props & React.RefAttributes<Element>>;
declare namespace MenuRadioGroup {
interface Props extends BaseUIComponentProps<'div', State> {
/**
* The content of the component.
*/
children?: React.ReactNode;
/**
* The controlled value of the radio item that should be currently selected.
*
* To render an uncontrolled radio group, use the `defaultValue` prop instead.
*/
value?: any;
/**
* The uncontrolled value of the radio item that should be initially selected.
*
* To render a controlled radio group, use the `value` prop instead.
*/
defaultValue?: any;
/**
* Function called when the selected value changes.
*
* @default () => {}
*/
onValueChange?: (value: any, event: Event) => void;
}
type State = {};
}
declare const MemoizedMenuRadioGroup: React.NamedExoticComponent<MenuRadioGroup.Props & React.RefAttributes<Element>>;
/**
* Groups related radio items.
* Renders a `<div>` element.
*
* Documentation: [Base UI Menu](https://base-ui.com/react/components/menu)
*/
export { MemoizedMenuRadioGroup as MenuRadioGroup };