MCPcopy Create free account
hub / github.com/vercel/examples / BackgroundColor

Function BackgroundColor

starter/cms-payload/components/BackgroundColor/index.tsx:23–45  ·  view source on GitHub ↗
(props)

Source from the content-addressed store, hash-verified

21}
22
23export const BackgroundColor: React.FC<Props> = (props) => {
24 const {
25 id,
26 className,
27 children,
28 paddingTop,
29 paddingBottom,
30 color = 'white',
31 } = props
32
33 return (
34 <div
35 id={id}
36 className={[classes[color], className].filter(Boolean).join(' ')}
37 >
38 <BackgroundColorContext.Provider value={color}>
39 <VerticalPadding top={paddingTop} bottom={paddingBottom}>
40 {children}
41 </VerticalPadding>
42 </BackgroundColorContext.Provider>
43 </div>
44 )
45}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected