Skip to content

Commit 18f97e8

Browse files
committed
Addressed the CR comments, added the CSSProp.Custom member for unsupported DSL features
1 parent 46f87a2 commit 18f97e8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Fable.React/Fable.Helpers.React.fs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,6 @@ module Props =
311311
| Y of obj
312312
interface IProp
313313

314-
/// If you are searching for a way to provide a value not supported by this DSL then use something like: !!("align-content", "center")
315314
type CSSProp =
316315
| AlignContent of obj
317316
| AlignItems of obj
@@ -719,6 +718,8 @@ module Props =
719718
| ZIndex of obj
720719
| Zoom of obj
721720
interface ICSSProp
721+
/// If you are searching for a way to provide a value not supported by this DSL then use something like: CSSProp.Custom "align-content" "center"
722+
static member inline Custom (key: string) (value: obj) : ICSSProp = !!(key, value)
722723

723724
open Props
724725
open Fable.Import.React

0 commit comments

Comments
 (0)