MCPcopy Create free account
hub / github.com/dailydotdev/apps / WidgetCard

Function WidgetCard

packages/shared/src/components/widgets/WidgetCard.tsx:10–28  ·  view source on GitHub ↗
(props: WidgetCardProps)

Source from the content-addressed store, hash-verified

8}
9
10export const WidgetCard = (props: WidgetCardProps): ReactElement => {
11 const { heading, className, children, ...attrs } = props;
12 return (
13 <section
14 className={classNames(
15 'flex flex-col rounded-16 border border-border-subtlest-tertiary',
16 className,
17 )}
18 {...attrs}
19 >
20 <header className="border-b border-b-border-subtlest-tertiary">
21 <h4 className="my-0.5 px-4 py-3 text-text-tertiary typo-body">
22 {heading}
23 </h4>
24 </header>
25 <div className="px-4 py-4">{children}</div>
26 </section>
27 );
28};

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected