@coko/client
Version:
Client side common code for coko apps
15 lines (14 loc) • 616 B
TypeScript
import React, { ComponentProps } from 'react';
import { Radio as AntRadio } from 'antd';
type RadioProps = Omit<ComponentProps<typeof AntRadio.Group>, 'onChange'> & {
/** Handle change. First argument is the incoming `value`. */
onChange?: ((value: string) => void) | null;
/** Arrange items vertically instead of inline. */
vertical?: boolean;
};
/**
* Props are the same as Ant's RadioGroup https://ant.design/components/radio/#RadioGroup
* with the addition of `vertical` and a slightly modified `onChange`.
*/
declare const Radio: (props: RadioProps) => React.ReactNode;
export default Radio;