MCPcopy Create free account
hub / github.com/Openpanel-dev/openpanel / WidgetTitle

Function WidgetTitle

apps/start/src/components/widget.tsx:26–47  ·  view source on GitHub ↗
({
  children,
  className,
  icon: Icon,
}: WidgetTitleProps)

Source from the content-addressed store, hash-verified

24 icon?: LucideIcon;
25}
26export function WidgetTitle({
27 children,
28 className,
29 icon: Icon,
30}: WidgetTitleProps) {
31 return (
32 <div
33 className={cn(
34 'relative flex items-center gap-4',
35 className,
36 !!Icon && 'pl-12',
37 )}
38 >
39 {Icon && (
40 <div className="absolute left-0 rounded-lg bg-def-200 p-2">
41 <Icon size={18} />
42 </div>
43 )}
44 <div className="title">{children}</div>
45 </div>
46 );
47}
48
49export interface WidgetBodyProps {
50 children: React.ReactNode;

Callers

nothing calls this directly

Calls 1

cnFunction · 0.90

Tested by

no test coverage detected