
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
react-thinking-panel
Advanced tools
A React component that replicates the Gemini Deep Research thinking panel style with expandable sections and source links
A React component that replicates the Gemini Deep Research thinking panel style with expandable sections and source links.
npm install react-thinking-panel
# or
yarn add react-thinking-panel
# or
pnpm add react-thinking-panel
import { ThinkingPanel } from 'react-thinking-panel';
import 'react-thinking-panel/styles.css';
function App() {
const [expanded, setExpanded] = useState(true);
return (
<ThinkingPanel
title="思路"
expanded={expanded}
onToggle={() => setExpanded(!expanded)}
sections={[
{
icon: 'sparkle',
title: 'Analysis',
content: 'Analyzing the problem...'
},
{
icon: 'brain',
title: 'Deep Thinking',
content: ['First paragraph.', 'Second paragraph.']
}
]}
/>
);
}
| Prop | Type | Default | Description |
|---|---|---|---|
title | string | '思路' | Panel header title |
titleIcon | ReactNode | - | Custom icon before title |
expanded | boolean | true | Whether panel is expanded |
onToggle | () => void | - | Toggle callback |
sections | ThinkingSection[] | required | Thinking sections |
researching | ResearchingSection | - | Source links section |
className | string | - | Container class |
headerClassName | string | - | Header class |
contentClassName | string | - | Content area class |
darkMode | boolean | - | Force dark mode |
style | CSSProperties | - | Inline styles |
| Prop | Type | Description |
|---|---|---|
title | string | Section title |
content | string | string[] | Paragraph(s) content |
icon | 'sparkle' | 'search' | 'brain' | 'bulb' | string | Built-in or emoji icon |
iconNode | ReactNode | Custom icon (overrides icon) |
className | string | Section class |
| Prop | Type | Description |
|---|---|---|
title | string | Section title |
icon | 'google' | 'search' | string | Built-in or emoji icon |
iconNode | ReactNode | Custom icon |
links | SourceLink[] | Source links |
className | string | Section class |
| Prop | Type | Description |
|---|---|---|
domain | string | Domain name (e.g., "github.com") |
title | string | Link title |
url | string | Full URL |
icon | string | Custom favicon URL |
Override these CSS custom properties to customize colors:
:root {
/* Light Mode */
--tp-bg: #ffffff;
--tp-border: #e5e7eb;
--tp-title-color: #374151;
--tp-section-icon-color: #f59e0b;
--tp-paragraph-color: #4b5563;
/* Timeline */
--tp-timeline-line-color: #e5e7eb;
--tp-timeline-dot-color: #3b82f6;
--tp-timeline-dot-size: 8px;
--tp-timeline-line-width: 2px;
/* ... see styles.css for all variables */
}
Auto (via media query):
@media (prefers-color-scheme: dark) {
:root { /* dark colors */ }
}
Manual:
<ThinkingPanel darkMode={true} ... />
Or apply .tp-dark class to a parent element.
import { FaRobot } from 'react-icons/fa';
<ThinkingPanel
sections={[
{
title: 'Custom Icon',
content: 'Using react-icons',
iconNode: <FaRobot size={16} color="#4285F4" />
}
]}
/>
<ThinkingPanel
title="Deep Research"
expanded={expanded}
onToggle={() => setExpanded(!expanded)}
sections={[
{ icon: 'sparkle', title: 'Analysis', content: '...' }
]}
researching={{
title: 'Researching websites',
icon: 'google',
links: [
{ domain: 'github.com', title: 'Repository', url: 'https://github.com/...' },
{ domain: 'arxiv.org', title: 'Paper', url: 'https://arxiv.org/...' }
]
}}
/>
MIT
FAQs
A React component that replicates the Gemini Deep Research thinking panel style with expandable sections and source links
The npm package react-thinking-panel receives a total of 0 weekly downloads. As such, react-thinking-panel popularity was classified as not popular.
We found that react-thinking-panel demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.