1
import * as React from 'react';
2 3
import { createHostComponent } from '@remax/runtime';
3

4
import { BaseProps } from '../../types/component';
5

6
export interface RadioProps extends BaseProps {
7
  name?: string;
8
  value?: string;
9
  checked?: boolean;
10
  disabled?: boolean;
11
  color?: string;
12
}
13

14 3
export const Radio: React.ComponentType<RadioProps> = createHostComponent<RadioProps>('radio');
15

16 3
Radio.defaultProps = {
17
  checked: false,
18
  disabled: false,
19
  color: '#F85959',
20
};

Read our documentation on viewing source code .

Loading