Changeset View
Changeset View
Standalone View
Standalone View
web/xec-web-components/src/TestComponent/TestComponent.stories.tsx
- This file was added.
import React from 'react'; | |||||
import TestComponent from './TestComponent'; | |||||
export default { | |||||
title: 'TestComponent', | |||||
}; | |||||
export const WithText = () => ( | |||||
<TestComponent | |||||
heading="I am a test component" | |||||
content={<h2>Made with love by Harvey</h2>} | |||||
/> | |||||
); | |||||
export const WithButtons = () => ( | |||||
<TestComponent | |||||
heading="I have a button" | |||||
content={ | |||||
<div> | |||||
<button onClick={() => alert('You clicked me!')}> | |||||
Click me | |||||
</button> | |||||
</div> | |||||
} | |||||
/> | |||||
); |