TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

ChatGPT-like copy code React component

1 点作者 adampzakaria超过 1 年前

1 comment

adampzakaria超过 1 年前
Hi everyone!<p>I made an easy to use component to display code with syntax highlighting and a clipboard users can click to copy the code to their clipboard. The design is based on OpenAI&#x27;s component in ChatGPT, and can be styled further. The component can also be used to display text without syntax highlighting.<p>Please give it a try and give feedback :)<p><a href="https:&#x2F;&#x2F;www.npmjs.com&#x2F;package&#x2F;copy-container-react" rel="nofollow noreferrer">https:&#x2F;&#x2F;www.npmjs.com&#x2F;package&#x2F;copy-container-react</a>