git.iko.soy/rowtype-yoga/purescript-radix-ui
on main help sign in
Allow arrow children
d5ffe6aMark Eibes
src/RadixUI/Tooltip.purs+4−3
@@ -135,7 +135,8 @@ type ArrowProps =
135
135
136foreign import arrowImpl ∷ ∀ a. ReactComponent { | a }
136foreign import arrowImpl ∷ ∀ a. ReactComponent { | a }
137
137
138−arrow ∷ ∀ p. Coerce p ArrowProps ⇒ p → JSX
138+arrow ∷ ∀ p kids. IsJSX kids => Coerce p ArrowProps ⇒ p → kids -> JSX
139−arrow props = React.element arrowImpl
139+arrow props kids = React.element arrowImpl
140− $ (coerce props ∷ ArrowProps)
140+ $ (coerce props ∷ ArrowProps)# RB.build
141+ ( RB.insert (Proxy :: Proxy "children") kids)
141
142