@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.
20 lines (19 loc) • 565 B
JavaScript
'use client';
import * as React from 'react';
import { NOOP } from "../utils/noop.js";
export const RadioGroupContext = /*#__PURE__*/React.createContext({
disabled: undefined,
readOnly: undefined,
required: undefined,
name: undefined,
checkedValue: '',
setCheckedValue: NOOP,
onValueChange: NOOP,
touched: false,
setTouched: NOOP,
registerControlRef: NOOP
});
if (process.env.NODE_ENV !== "production") RadioGroupContext.displayName = "RadioGroupContext";
export function useRadioGroupContext() {
return React.useContext(RadioGroupContext);
}