fbredius/storybook

View on GitHub
addons/docs/src/frameworks/react/__testfixtures__/9556-ts-react-default-exports/input.tsx

Summary

Maintainability
A
0 mins
Test Coverage
/* eslint-disable react/button-has-type */
import React from 'react';

export interface Props extends React.ButtonHTMLAttributes<HTMLButtonElement> {
  isDisabled?: boolean;
}

export const Button: React.FC<Props> = ({ isDisabled = false, ...props }: Props) => (
  <button disabled={isDisabled} {...props} />
);

export const component = Button;