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

Function AlertBox

packages/ui-components/src/Common/AlertBox/index.tsx:13–23  ·  view source on GitHub ↗
({
  level,
  title,
  children,
  size = 'default',
})

Source from the content-addressed store, hash-verified

11}>;
12
13const AlertBox: FC<AlertBoxProps> = ({
14 level,
15 title,
16 children,
17 size = 'default',
18}) => (
19 <div className={classNames(styles.alertBox, styles[level], styles[size])}>
20 <span className={styles.title}>{title}</span>
21 <span className={styles.content}>{children}</span>
22 </div>
23);
24
25export default AlertBox;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected