Shmew / Feliz.MaterialUI

Feliz-style Fable bindings for Material-UI
https://shmew.github.io/Feliz.MaterialUI/
MIT License
69 stars 20 forks source link

StylesProvider not generated #54

Closed Shmew closed 4 years ago

Shmew commented 4 years ago

It doesn't look like Material-UI's StyleProvider gets generated currently.

I can confirm it works with this implementation:

open Fable.Core
open Fable.Core.JsInterop
open Feliz
open Feliz.MaterialUI

[<AutoOpen;Erase>]
module MuiExtensions =
    type Mui with
        static member inline stylesProvider (props: IReactProperty list) = createElement (import "StylesProvider" "@material-ui/core/styles") (unbox props)

    [<Erase>]
    type stylesProvider =
        static member inline injectFirst (value: bool) = Interop.mkAttr "injectFirst" value
        static member inline children (elements: ReactElement list) = Interop.mkAttr "children" elements
cmeeren commented 4 years ago

Thanks, v1.2.0 is in the pipeline with this component.