@project44-manifest/react
Version:
Manifest Design System react components
11 lines (7 loc) • 333 B
text/typescript
import { createContext, useContext } from 'react';
import type { RadioGroupState } from '@react-stately/radio';
export interface RadioGroupContext {
state: RadioGroupState;
}
export const RadioGroupContext = createContext<RadioGroupContext | null>(null);
export const useRadioGroupContext = () => useContext(RadioGroupContext);