mirror of
https://github.com/paperclipai/paperclip.git
synced 2026-10-23 00:53:38 +02:00
Wraps fenced code blocks in MarkdownBody with a relative container and an absolute-positioned Copy button (top-right) that copies the block contents to the clipboard via navigator.clipboard with an execCommand fallback for non-secure contexts. The button is hidden by default and reveals on hover or focus, swaps to a check icon and "Copied\!" label for ~1.5s after clicking, and falls back to "Copy failed" when the clipboard write throws. Co-Authored-By: Paperclip <noreply@paperclip.ing>
@paperclipai/ui
Published static assets for the Paperclip board UI.
What gets published
The npm package contains the production build under dist/. It does not ship the UI source tree or workspace-only dependencies.
Storybook
Storybook config, stories, and fixtures live under ui/storybook/.
pnpm --filter @paperclipai/ui storybook
pnpm --filter @paperclipai/ui build-storybook
Typical use
Install the package, then serve or copy the built files from node_modules/@paperclipai/ui/dist.