git.iko.soy/rowtype-yoga/purescript-radix-ui
on main help sign in
Allow arrow children
commit1f0fd1e4915c651acca8eedf05dccb616591cdb2 authorMark Eibes <mark.eibes@gmail.com> dateSun 23 Jul 2023, 14:24 (3 years ago) parentd5ffe6a
1 file changed+4−3
src/RadixUI/DropdownMenu.purs+4−3
src/RadixUI/DropdownMenu.purs+4−3
@@ -253,9 +253,10 @@ type DropdownMenuArrowProps =
253253foreign import arrowImpl :: forall a. ReactComponent { | a }
254254
255255-- | A PureScript wrapper for the DropdownMenuArrow component
256−arrow :: forall p. Coerce p DropdownMenuArrowProps => p -> JSX
257−arrow props = React.element arrowImpl
258− $ (coerce props :: DropdownMenuArrowProps)
256+arrow ∷ ∀ p kids. IsJSX kids => Coerce p DropdownMenuArrowProps ⇒ p → kids -> JSX
257+arrow props kids = React.element arrowImpl
258+ $ (coerce props ∷ DropdownMenuArrowProps)# RB.build
259+ ( RB.insert (Proxy :: Proxy "children") kids)
259260
260261-- | The type of the DropdownMenuSub component props
261262type DropdownMenuSubProps =