UNPKG

@streetscape.gl/monochrome

Version:

A toolkit of React components for streetscape.gl

32 lines (27 loc) 904 B
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty"; import React, { Component } from 'react'; import { boolean } from '@storybook/addon-knobs'; import { storiesOf } from '@storybook/react'; import { withReadme } from 'storybook-readme'; import README from './README.md'; import CheckBox from './index'; class CheckBoxExample extends Component { constructor() { super(...arguments); _defineProperty(this, "state", { value: CheckBox.ON }); } render() { return React.createElement(CheckBox, { isEnabled: boolean('isEnabled', true), value: this.state.value, label: "I am a cat person", onChange: value => this.setState({ value }) }); } } storiesOf('Building Blocks', module).addDecorator(withReadme(README)).add('CheckBox', () => React.createElement(CheckBoxExample, null)); //# sourceMappingURL=stories.js.map