UNPKG

@gluestack-ui/core

Version:

Universal UI components for React Native, Expo, and Next.js

14 lines 492 B
import { mergeProps, filterDOMProps } from '@react-aria/utils'; import { getLabel } from '@gluestack-ui/utils/aria'; export function useCheckboxGroup(props, _state) { let { isDisabled } = props; let domProps = filterDOMProps(props, { labelable: true }); return { groupProps: mergeProps(domProps, { ' aria-disabled': isDisabled, 'aria-label': getLabel(props), }), labelProps: {}, }; } //# sourceMappingURL=useCheckboxGroup.js.map