MCPcopy Create free account
hub / github.com/artsy/force / FadeInBox

Function FadeInBox

src/Components/FadeInBox.tsx:5–22  ·  view source on GitHub ↗
({
  children,
  ...rest
})

Source from the content-addressed store, hash-verified

3interface FadeInBoxProps extends BoxProps {}
4
5export const FadeInBox: React.FC<React.PropsWithChildren<FadeInBoxProps>> = ({
6 children,
7 ...rest
8}) => {
9 const isMounted = useDidMount()
10
11 return (
12 <Box
13 opacity={isMounted ? 1 : 0}
14 style={{
15 transition: "opacity 250ms",
16 }}
17 {...rest}
18 >
19 {children}
20 </Box>
21 )
22}

Callers

nothing calls this directly

Calls 1

useDidMountFunction · 0.85

Tested by

no test coverage detected