Skip to content

Commit

Permalink
Update README.md (#867)
Browse files Browse the repository at this point in the history
* Update README.md

Adding clarification for usage of <Range /> by setting the property in <Slider />

* Update README.md

---------

Co-authored-by: Amumu <yoyo837@hotmail.com>
  • Loading branch information
code2be and yoyo837 committed Apr 15, 2023
1 parent c55caa7 commit ecdcaaa
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions README.md
Expand Up @@ -33,14 +33,28 @@ Online examples: https://slider.react-component.now.sh/

## Usage

## Slider
```js
import Slider, { Range } from 'rc-slider';
import Slider from 'rc-slider';
import 'rc-slider/assets/index.css';

export default () => (
<>
<Slider />
<Range />
</>
);
```

## Range
Please refer to [#825](https://github.com/react-component/slider/issues/825) for information regarding usage of `Range`.
An example:
```js
import Slider, { Range } from 'rc-slider';
import 'rc-slider/assets/index.css';

export default () => (
<>
<Slider range />
</>
);
```
Expand Down

0 comments on commit ecdcaaa

Please sign in to comment.