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
Copy file name to clipboardExpand all lines: README.md
+6-1
Original file line number
Diff line number
Diff line change
@@ -33,9 +33,14 @@ export default config;
33
33
## Usage
34
34
35
35
The primary way to use this addon is to define the `cssswitch` parameter in the preview.ts file. In the option you define
36
+
36
37
`name` the identifier of the CSS (displayed in the dropdown)
38
+
37
39
`value` the URL of the CSS (must be available on runtime)
38
-
`backgroundColor` a background color which will be applied to the story preview when this css is loaded and is also used for the icon in the dropdown
40
+
41
+
`backgroundColor` a background color which will be applied to the story preview when this css is loaded and is also used for the icon in the dropdown if no `iconColor` given
42
+
43
+
`iconColor` an optional icon color used for the icon in the dropdown
0 commit comments