rangeSlider.stories.js 582 B

12345678910111213141516171819202122232425
  1. import React from 'react';
  2. import {withInfo} from '@storybook/addon-info';
  3. import RangeSlider from 'app/views/settings/components/forms/controls/rangeSlider';
  4. export default {
  5. title: 'Forms/Controls',
  6. };
  7. export const _RangeSlider = withInfo('Range Slider')(() => (
  8. <React.Fragment>
  9. <p>
  10. <h4>Without custom input</h4>
  11. <RangeSlider min={1} max={100} value={5} />
  12. </p>
  13. <p>
  14. <h4>With custom input</h4>
  15. <RangeSlider min={5} max={50} value={21} showCustomInput />
  16. </p>
  17. </React.Fragment>
  18. ));
  19. _RangeSlider.story = {
  20. name: 'RangeSlider',
  21. };