From ebcc363833cc4c5c94638248c70799061d8bd6e4 Mon Sep 17 00:00:00 2001 From: Ahmed Hosny Date: Sat, 15 Apr 2023 05:09:16 +0200 Subject: [PATCH 1/2] Update README.md Adding clarification for usage of by setting the property in --- README.md | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 5e6252495..28d10da0a 100644 --- a/README.md +++ b/README.md @@ -33,6 +33,7 @@ Online examples: https://slider.react-component.now.sh/ ## Usage +## Slider ```js import Slider, { Range } from 'rc-slider'; import 'rc-slider/assets/index.css'; @@ -40,7 +41,20 @@ import 'rc-slider/assets/index.css'; export default () => ( <> - + +); +``` + +## 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 () => ( + <> + ); ``` From 7eff9c196455eac72378783e70a42bc3de21bbcf Mon Sep 17 00:00:00 2001 From: Amumu Date: Sat, 15 Apr 2023 23:42:30 +0800 Subject: [PATCH 2/2] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 28d10da0a..e2ed7346e 100644 --- a/README.md +++ b/README.md @@ -35,7 +35,7 @@ Online examples: https://slider.react-component.now.sh/ ## Slider ```js -import Slider, { Range } from 'rc-slider'; +import Slider from 'rc-slider'; import 'rc-slider/assets/index.css'; export default () => (