MCPcopy Create free account
hub / github.com/github/docs / Lead

Function Lead

components/ui/Lead/Lead.tsx:11–21  ·  view source on GitHub ↗
({ children, className, as: Component = 'div', ...restProps }: LeadPropsT)

Source from the content-addressed store, hash-verified

9}
10
11export function Lead({ children, className, as: Component = 'div', ...restProps }: LeadPropsT) {
12 return (
13 <Component
14 className={cx('f2 color-fg-muted mb-3', styles.container, className)}
15 {...restProps}
16 {...(typeof children === 'string'
17 ? { dangerouslySetInnerHTML: { __html: children } }
18 : { children })}
19 />
20 )
21}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected