MCPcopy Create free account
hub / github.com/nodejs/nodejs.org / Banner

Function Banner

packages/ui-components/src/Common/Banner/index.tsx:9–20  ·  view source on GitHub ↗
({
  type = 'default',
  children,
  ...props
})

Source from the content-addressed store, hash-verified

7} & HTMLAttributes<HTMLElement>;
8
9const Banner: FC<PropsWithChildren<BannerProps>> = ({
10 type = 'default',
11 children,
12 ...props
13}) => (
14 <section
15 className={`${styles.banner} ${styles[type] || styles.default}`}
16 {...props}
17 >
18 {children}
19 </section>
20);
21
22export default Banner;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected