fbredius/storybook

View on GitHub
examples/official-storybook/components/OptionalButton.tsx

Summary

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

// Repro #11019
interface Props {
  kind?: 'a' | 'b';
  disabled?: boolean;
}

export const OptionalButton = ({ disabled = false, kind = 'a' }: Props) => (
  // eslint-disable-next-line react/button-has-type
  <button {...{ disabled }}>Repro</button>
);

export default OptionalButton;