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: docs/style-prop.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,7 @@
1
1
<!-- AUTO-GENERATED-CONTENT:START (HEADER) -->
2
2
# solid/style-prop
3
3
Require CSS properties in the `style` prop to be valid and kebab-cased (ex. 'font-size'), not camel-cased (ex. 'fontSize') like in React, and that property values are strings, not numbers with implicit 'px' units.
@@ -16,8 +16,8 @@ This rule is **an error** by default.
16
16
17
17
Key | Type | Description
18
18
:--- | :---: | :---
19
-
styleProps | `Array<string>` |
20
-
allowString | `boolean` |
19
+
styleProps | `Array<string>` | an array of prop names to treat as a CSS style object *Default `["style"]`*.
20
+
allowString | `boolean` | if allowString is set to true, this rule will not convert a style string literal into a style object (not recommended for performance)
0 commit comments