rangeSlider.stories.js 505 B

12345678910111213141516171819202122
  1. import {Fragment} from 'react';
  2. import RangeSlider from 'sentry/components/forms/controls/rangeSlider';
  3. export default {
  4. title: 'Components/Forms/Controls/Range Slider',
  5. };
  6. export const _RangeSlider = () => (
  7. <Fragment>
  8. <p>
  9. <h4>Without custom input</h4>
  10. <RangeSlider min={1} max={100} value={5} />
  11. </p>
  12. <p>
  13. <h4>With custom input</h4>
  14. <RangeSlider min={5} max={50} value={21} showCustomInput />
  15. </p>
  16. </Fragment>
  17. );
  18. _RangeSlider.storyName = 'Range Slider';