import { InputRange } from '../../../components';
import { ArgsTable, Story, Canvas, Meta } from '@storybook/addon-docs';

export const argTypes = {
  component: InputRange,
  title: 'Components/InputRange',
};

<Meta
  title="Components/InputRange"
  component={InputRange}
/>

export const RangeInputTemplate = args => (
  <div className="w-3">
    <InputRange {...args} />
  </div>
);

<Heading
  title="InputRange"
  componentRelativePath="InputRange/InputRange.tsx"
/>

- [Overview](#overview)
- [Props](#props)
- [Contribute](#contribute)

## Overview

InputRange is a component that allows you to use as a boolean value

<Canvas>
  <Story
    name="Overview"
    args={{
      value: 20,
      minValue: 0,
      maxValue: 100,
      step: 10,
      unit: '%',
      onChange: () => console.log('input range change'),
      labelClassName: 'text-black',
    }}
  >
    {RangeInputTemplate.bind({})}
  </Story>
</Canvas>

## Props

<ArgsTable of={InputRange} />

## Contribute

<Footer componentRelativePath="InputRange/__stories__/InputRange.stories.mdx" />
