UNPKG

@awsui/components-react

Version:

AWS UI is a collection of [React](https://reactjs.org/) components that help create intuitive, responsive, and accessible user experiences for web applications. It is developed by Amazon Web Services (AWS). This work is available under the terms of the [A

25 lines (24 loc) 855 B
import React from 'react'; import { BaseComponentProps } from '../internal/base-component'; import { NonCancelableEventHandler } from '../internal/events'; import { FormFieldControlProps } from '../internal/context/form-field-context'; export interface RadioGroupProps extends BaseComponentProps, FormFieldControlProps { name?: string; value: string | null; items?: ReadonlyArray<RadioGroupProps.RadioButtonDefinition>; ariaLabel?: string; ariaRequired?: boolean; onChange?: NonCancelableEventHandler<RadioGroupProps.ChangeDetail>; } export declare namespace RadioGroupProps { interface RadioButtonDefinition { value: string; label: React.ReactNode; description?: React.ReactNode; disabled?: boolean; controlId?: string; } interface ChangeDetail { value: string; } }