UNPKG

@mantine/core

Version:

React components library focused on usability, accessibility and developer experience

1 lines 1.05 kB
{"version":3,"file":"RadioGroup.context.cjs","sources":["../../../src/components/Radio/RadioGroup.context.ts"],"sourcesContent":["import { createOptionalContext, MantineSize } from '../../core';\n\ninterface RadioGroupContextValue {\n size: MantineSize | undefined;\n value: string;\n onChange: (event: React.ChangeEvent<HTMLInputElement> | string) => void;\n name: string;\n}\n\nexport const [RadioGroupProvider, useRadioGroupContext] =\n createOptionalContext<RadioGroupContextValue>();\n"],"names":["createOptionalContext"],"mappings":";;;;;;;;;;;;;;;;AASO,CAAA,CAAA,CAAA,CAAA,CAAA,CAAM,CAAC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAoB,CAAoB,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,GACpDA,CAA8C,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;;;"}