git.iko.soy/rowtype-yoga/purescript-radix-ui
on main help sign in
More basic attrs for avatar
commitd0f3bf22e776ab64c5cc56a1642fc32b913880f8 authorMark Eibes <mark.eibes@gmail.com> dateSun 6 Aug 2023, 21:11 (3 years ago) parent7f2d442
1 file changed+6
src/RadixUI/Avatar.purs+6
src/RadixUI/Avatar.purs+6
@@ -20,6 +20,8 @@ foreign import fallbackImpl :: forall r. ReactComponent { | r }
2020
2121type RootProps =
2222 { asChild :: Opt Boolean
23+ , className :: Opt String
24+ , style :: Opt CSS
2325 }
2426
2527root :: forall p kids. Coerce p RootProps => IsJSX kids => p -> kids -> JSX
@@ -42,6 +44,8 @@ toImageLoadingStatus = case _ of
4244
4345type ImageProps =
4446 { asChild :: Opt Boolean
47+ , className :: Opt String
48+ , style :: Opt CSS
4549 , onLoadingStatusChange :: Opt (ImageLoadingStatus -> Effect Unit)
4650 }
4751
@@ -56,6 +60,8 @@ image props' kids = do
5660type FallbackProps =
5761 { asChild :: Opt Boolean
5862 , delayMs :: Opt Milliseconds
63+ , className :: Opt String
64+ , style :: Opt CSS
5965 }
6066
6167fallback :: forall p kids. Coerce p FallbackProps => IsJSX kids => p -> kids -> JSX