diff --git a/src/radio/Radio.tsx b/src/radio/Radio.tsx index dc35d0fd4..190ad63d7 100644 --- a/src/radio/Radio.tsx +++ b/src/radio/Radio.tsx @@ -18,10 +18,12 @@ export type RadioOptions = CompositeItemOptions & * Same as the `value` attribute. */ value: string | number; + /** * Same as the `checked` attribute. */ checked?: boolean; + /** * @private */ @@ -85,7 +87,6 @@ export const useRadio = createHook({ warning( true, "Can't determine whether the element is a native radio because `ref` wasn't passed to the component", - "See https://reakit.io/docs/radio", ); return; } diff --git a/src/radio/RadioGroup.tsx b/src/radio/RadioGroup.tsx index 337c9d70e..5c0fb7ffc 100644 --- a/src/radio/RadioGroup.tsx +++ b/src/radio/RadioGroup.tsx @@ -31,7 +31,6 @@ export const RadioGroup = createComponent({ useWarning( !props["aria-label"] && !props["aria-labelledby"], "You should provide either `aria-label` or `aria-labelledby` props.", - "See https://reakit.io/docs/radio", ); return useCreateElement(type, props, children); }, diff --git a/src/radio/RadioState.tsx b/src/radio/RadioState.tsx index a72c30266..ee123df8f 100644 --- a/src/radio/RadioState.tsx +++ b/src/radio/RadioState.tsx @@ -10,7 +10,7 @@ import { useControllableState } from "../utils"; export type RadioState = CompositeState & { /** - * The `value` attribute of the current checked radio. + * The `value` attribute of the current active radio. */ state: string | number | null; }; @@ -24,19 +24,19 @@ export type RadioActions = CompositeActions & { export type RadioInitialState = CompositeInitialState & { /** - * Default State of the Checkbox for uncontrolled Checkbox. + * Default State of the Radio for uncontrolled Radio. * * @default false */ defaultState?: RadioState["state"]; /** - * State of the Checkbox for controlled Checkbox.. + * State of the Radio for controlled Radio.. */ state?: RadioState["state"]; /** - * OnChange callback for controlled Checkbox. + * OnChange callback for controlled Radio. */ onStateChange?: RadioActions["setState"]; };