UNPKG

@momentum-ui/react-collaboration

Version:

Cisco Momentum UI Framework for React Collaboration Applications

34 lines (28 loc) 869 B
import { CSSProperties, ReactNode } from 'react'; import { AriaRadioGroupProps } from '@react-types/radio'; import { AriaLabelingProps } from '@react-types/shared'; import { RequireOneOf } from '../../utils/types'; interface Props extends AriaRadioGroupProps, AriaLabelingProps { /** * The RadioSimpleGroup's visible label (if any). */ label?: ReactNode; /** * Custom class for overriding this component's CSS. */ className?: string; /** * A wrapper that contains the RadioSimples inside this RadioSimpleGroup */ children: ReactNode; /** * The RadioSimpleGroup description element, if any. */ description?: ReactNode; /** * Custom style for overriding this component's CSS. */ style?: CSSProperties; } export type RadioSimpleGroupProps = Props & RequireOneOf<Props, ['label', 'aria-label', 'aria-labelledby']>;