From ecdcaaaa117926449cd30c1187f34bbedda1e264 Mon Sep 17 00:00:00 2001 From: Ahmed Hosny Date: Sat, 15 Apr 2023 17:46:46 +0200 Subject: [PATCH] Update README.md (#867) * Update README.md Adding clarification for usage of by setting the property in * Update README.md --------- Co-authored-by: Amumu --- README.md | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 5e6252495..e2ed7346e 100644 --- a/README.md +++ b/README.md @@ -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 () => ( <> - + +); +``` + +## 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 () => ( + <> + ); ```