fbredius/storybook

View on GitHub
addons/docs/src/frameworks/react/__testfixtures__/9764-ts-extend-props/input.tsx

Summary

Maintainability
A
40 mins
Test Coverage
import React from 'react';

interface InputProps {
  /**
   * The input content value
   */
  value?: string | number;
}

interface RadioProps extends InputProps {
  defaultChecked?: boolean;
  checked?: boolean;
}

const Radio: React.FC<RadioProps> = (props: RadioProps) => <>{JSON.stringify(props)}</>;

export const component = Radio;