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
| background | string | '#000000' | Hex or rgb() string for the display's background |
42
+
| borderColor | string | '#dddddd' | Hex or rgb() string for the color of the border between characters |
43
+
| borderWidth | string | '1px' | Any valid CSS width value for the width of the border between characters |
44
+
| characterSet | Array of strings (required) |_null_| The array of characters for the display to flip through |
45
+
| characterWidth | string | '1em' | Any valid CSS width value for the width of each character. Useful with non-monospaced fonts |
46
+
| fontSize | string | '1em' | Any valid CSS font-size value |
47
+
| minLength | number |_null_| Minimum # of characters in the display |
48
+
| padDirection | string | 'left' | If minLength > number of characters currently displayed, append blank characters to left or right side |
49
+
| step | number | 200 | Sets the speed (ms) of flips |
50
+
| textColor | string | '#dddddd' | Hex or rgb() string for color of the display characters |
51
+
| value | string (required) |_null_| The string of characters to display or flip to |
52
+
| withSound | boolean or string |_null_| Optionally load and play a sound with every flip.<br/>Sound duration must be less than or equal to `step` duration.<br/>`true` loads an mp3 I recorded of a single Vestaboard bit flipping |
52
53
53
54
For `characterSet`, there are three convenience constants that ship with this component (you can see how they might be used in the example):
0 commit comments