Closed cmeeren closed 4 years ago
A less verbose alternative to anonymous records is tuples, in this case int * string option
and float * string option
. The final line in the usage example above then becomes
slider.marks((37.5, Some "body temp"), (50, None))
I got compiler errors about incompatible types when trying to pass anonymous records across project boundaries.
I ended up using the less verbose tuple alternative.
The
slider
API docs says the following about themarks
prop, which can bebool
orarray
:I have implemented this prop as below, does that make sense?
https://github.com/cmeeren/Feliz.MaterialUI/blob/cbc5dd789a526939fdea917f888f27d4f06d7c1a/src/Feliz.MaterialUI/Props.fs#L3712-L3720
Usage: