@gluestack-ui/core
Version:
Universal UI components for React Native, Expo, and Next.js
13 lines • 383 B
JavaScript
import { getLabel } from '@gluestack-ui-nightly/utils/aria';
export function useRadioGroup(props, _state) {
let { isDisabled } = props;
return {
radioGroupProps: {
'aria-label': getLabel(props),
'role': 'radiogroup',
'aria-disabled': isDisabled,
},
labelProps: {},
};
}
//# sourceMappingURL=useRadioGroup.js.map