You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Sep 25, 2020. It is now read-only.
Copy file name to clipboardExpand all lines: README.md
+64-2Lines changed: 64 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -31,16 +31,78 @@ In `plugins/object-fit/index.js` you'll find an example of a plugin that adds a
31
31
The only option it exposes are the variants you'd like to generate (`responsive`, `hover`, `focus`, etc.), which you pass to the plugin as a simple array:
32
32
33
33
```js
34
-
plugins: {
34
+
module.exports= {
35
+
// ...
36
+
37
+
plugins: [
35
38
// ...
36
39
require('./plugins/object-fit')(['responsive']),
40
+
],
37
41
}
38
42
```
39
43
40
44
This is just about the simplest type of plugin you could make.
41
45
42
46
## Simple Buttons
43
47
44
-
In `plugins/simple-buttons/index.js` you'll find an example of a plugin that adds new component classes.
48
+
In `plugins/simple-buttons/index.js` you'll find an example of a plugin that adds new button component classes.
0 commit comments