@yawaramin This error
Error: This expression has type
React.componentLike({. "children": option(React.element),
"className": option(string),
"classPrefix": option(string),
"fixedWidth": option(bool),
"flip": option([ `horizontal | `vertical ]),
"icon": option(string),
"inverse": option(bool),
"pulse": option(bool), "rotate": option(int),
"size": option([ `lg ]), "spin": option(bool),
"style": option(ReactDOMRe.Style.t),
"svgStyle": option(ReactDOMRe.Style.t)},
React.element)
=
{. "children": option(React.element), "className": option(string),
"classPrefix": option(string), "fixedWidth": option(bool),
"flip": option([ `horizontal | `vertical ]),
"icon": option(string), "inverse": option(bool),
"pulse": option(bool), "rotate": option(int),
"size": option([ `lg ]), "spin": option(bool),
"style": option(ReactDOMRe.Style.t),
"svgStyle": option(ReactDOMRe.Style.t)} =>
React.element
but an expression was expected of type
RsuiteUi.Icon.Props.t => React.element
Type
{. "children": option(React.element), "className": option(string),
"classPrefix": option(string), "fixedWidth": option(bool),
"flip": option([ `horizontal | `vertical ]),
"icon": option(string), "inverse": option(bool),
"pulse": option(bool), "rotate": option(int),
"size": option([ `lg ]), "spin": option(bool),
"style": option(ReactDOMRe.Style.t),
"svgStyle": option(ReactDOMRe.Style.t)}
is not compatible with type
RsuiteUi.Icon.Props.t = RsuiteUi.Icon.Props.t
Maybe implementation of this component will help you:
[@bs.module "rsuite"] [@react.component]
external make:
(
~children: React.element,
~style: ReactDOMRe.Style.t=?,
~classPrefix: string=?,
~className: string=?,
~appearance: [@bs.string] [
| `default
| `tabs
| `subtle
]
=?,
~justified: bool=?,
~onSelect: (string, ReactEvent.Synthetic.t) => unit=?,
~pills: bool=?,
~pullRight: bool=?,
~stacked: bool=?,
) =>
This file has been truncated. show original
module Props = {
[@bs.deriving abstract]
type t = {
[@bs.optional] style: ReactDOMRe.Style.t,
[@bs.optional] children: React.element,
[@bs.optional] classPrefix: string,
[@bs.optional] className: string,
[@bs.optional] svgStyle: ReactDOMRe.Style.t,
[@bs.optional] spin: bool,
[@bs.optional] pulse: bool,
[@bs.optional] inverse: bool,
[@bs.optional] rotate: int,
[@bs.optional] fixedWidth: bool,
[@bs.optional] icon: string,
[@bs.optional] size: string,
[@bs.optional] flip: string
}
};
This file has been truncated. show original