Skip to content

Commit 0f0e778

Browse files
committed
Better document CSS inclusion
1 parent e72925b commit 0f0e778

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

README.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,15 @@ The component takes the following props.
2929
npm install react-toggle
3030
```
3131

32-
Include the component's [CSS](./style.css).
32+
## Usage
33+
34+
If you want the default styling, include the component's [CSS](./style.css) with
35+
36+
```javascript
37+
import "react-toggle/style.css" // for ES6 modules
38+
// or
39+
require("react-toggle/style.css") // for CommonJS
40+
```
3341

3442
## Development
3543

0 commit comments

Comments
 (0)