Skip to content

Commit 502e661

Browse files
committed
Fixed styles in a Semantic-UI environment
+ Added examples with Semantic-UI + Added styles example in README
1 parent 0d9c633 commit 502e661

9 files changed

+31130
-110
lines changed

README.md

100644100755
+8
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,12 @@ Here are some basic examples, **but you can play with all the parameters in the
2828
### Single slider
2929

3030
```tsx
31+
// Component
3132
import { SingleRangeSlider } from 'neo-react-semantic-ui-range'
3233

34+
// Styles
35+
import 'neo-react-semantic-ui-range/dist/styles.min.css'
36+
3337
const MySingleSlider = (props) => {
3438
const [value, setValue] = useState<number>(45.5)
3539

@@ -57,8 +61,12 @@ const MySingleSlider = (props) => {
5761
### Multi range slider
5862

5963
```tsx
64+
// Component
6065
import { MultiRangeSlider } from 'neo-react-semantic-ui-range'
6166

67+
// Styles
68+
import 'neo-react-semantic-ui-range/dist/styles.min.css'
69+
6270
const MyMultiRangeSlider = (props) => {
6371
const [minValue, setMinValue] = useState<number>(30)
6472
const [maxValue, setMaxValue] = useState<number>(60)

0 commit comments

Comments
 (0)