import { Meta, Story, Preview, Props } from '@storybook/addon-docs/blocks';
import { action } from "@storybook/addon-actions";
import { ExampleButton } from "./ExampleButton.tsx";

<Meta title="Example Button" component={ExampleButton} />

# ExampleButton

<Props of={ExampleButton} />

## Hello world

  hello world

<Preview>  
  <Story name="Default">
    <ExampleButton onClick={action("clicked")}>
        <span>Hello world</span>
    </ExampleButton>
  </Story>
</Preview>  

  ## Toto

  hello world

  ## Pouet 

  hello world

  <Story name="Disabled">
    <ExampleButton onClick={action("clicked")} disabled>
        Disabled
    </ExampleButton>
  </Story>