Spaces:
Paused
Paused
Download packages/plugins/examples/plugin-hello-world-example/src/ui/index.tsx from GraziePrego/agent: direct link, hf CLI and curl.
- Browser
- Download file 607 Bytes
-
https://huggingface.co/spaces/GraziePrego/agent/resolve/main/packages/plugins/examples/plugin-hello-world-example/src/ui/index.tsx
- Command line
-
hf download hf://spaces/GraziePrego/agent/packages/plugins/examples/plugin-hello-world-example/src/ui/index.tsx
-
curl -L -o index.tsx https://huggingface.co/spaces/GraziePrego/agent/resolve/main/packages/plugins/examples/plugin-hello-world-example/src/ui/index.tsx
607 Bytes
| import type { PluginWidgetProps } from "@paperclipai/plugin-sdk/ui"; | |
| const WIDGET_LABEL = "Hello world plugin widget"; | |
| /** | |
| * Example dashboard widget showing the smallest possible UI contribution. | |
| */ | |
| export function HelloWorldDashboardWidget({ context }: PluginWidgetProps) { | |
| return ( | |
| <section aria-label={WIDGET_LABEL}> | |
| <strong>Hello world</strong> | |
| <div>This widget was added by @paperclipai/plugin-hello-world-example.</div> | |
| {/* Include host context so authors can see where scoped IDs come from. */} | |
| <div>Company context: {context.companyId}</div> | |
| </section> | |
| ); | |
| } | |