import React, { Component } from 'react'; import { storiesOf } from '@storybook/react'; import { action } from '@storybook/addon-actions'; import { StoryContainer } from './helpers'; import { ActionList, Popover, Button, TextField, Panel } from '../src'; class DemoTypeahead extends Component { state = { open: false } render() { return (
this.setState({ open: true }) } onBlur={() => this.setState({ open: false })}/> { this.state.open ?
: null }
); } } storiesOf('ActionList', module) .addDecorator((getStory) => ( { getStory() } )) .addWithInfo('within a Popover', () => ( More Actions} style={{ width: '200px' }}> )) .add('within a custom component', () => ( ));