[PR #360] [MERGED] feat(react): add <diff> component support #479

Closed
opened 2026-03-02 23:46:41 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/anomalyco/opentui/pull/360
Author: @remorses
Created: 11/29/2025
Status: Merged
Merged: 11/29/2025
Merged by: @msmps

Base: mainHead: feat/react-diff-component


📝 Commits (4)

  • 8362a0c feat(react): add component support
  • cc89386 Merge branch 'main' into feat/react-diff-component
  • e4b65ca Merge branch 'main' into feat/react-diff-component
  • 3610be3 docs: enhance readme with table of contents and detailed component descriptions

📊 Changes

6 files changed (+492 additions, -141 deletions)

View changed files

📝 packages/core/src/examples/index.ts (+7 -0)
📝 packages/react/README.md (+197 -141)
packages/react/examples/diff.tsx (+280 -0)
📝 packages/react/jsx-namespace.d.ts (+2 -0)
📝 packages/react/src/components/index.ts (+2 -0)
📝 packages/react/src/types/components.ts (+4 -0)

📄 Description

Summary

  • Add <diff> as a built-in React component by registering DiffRenderable in the component catalogue
  • Add React example demonstrating diff viewer with theme cycling, view modes (unified/split), and keybindings
  • Add diff-demo to core examples index

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/anomalyco/opentui/pull/360 **Author:** [@remorses](https://github.com/remorses) **Created:** 11/29/2025 **Status:** ✅ Merged **Merged:** 11/29/2025 **Merged by:** [@msmps](https://github.com/msmps) **Base:** `main` ← **Head:** `feat/react-diff-component` --- ### 📝 Commits (4) - [`8362a0c`](https://github.com/anomalyco/opentui/commit/8362a0ca3afa8ae9d7dcab7f5f032bb28f39a9b5) feat(react): add <diff> component support - [`cc89386`](https://github.com/anomalyco/opentui/commit/cc893869a86aec903420693e156791c5891fd919) Merge branch 'main' into feat/react-diff-component - [`e4b65ca`](https://github.com/anomalyco/opentui/commit/e4b65ca0a5ef6cb4dc01b5277d748005cfcdfa3a) Merge branch 'main' into feat/react-diff-component - [`3610be3`](https://github.com/anomalyco/opentui/commit/3610be3b3a74e54c7deb9c79c711c7786d5ebeec) docs: enhance readme with table of contents and detailed component descriptions ### 📊 Changes **6 files changed** (+492 additions, -141 deletions) <details> <summary>View changed files</summary> 📝 `packages/core/src/examples/index.ts` (+7 -0) 📝 `packages/react/README.md` (+197 -141) ➕ `packages/react/examples/diff.tsx` (+280 -0) 📝 `packages/react/jsx-namespace.d.ts` (+2 -0) 📝 `packages/react/src/components/index.ts` (+2 -0) 📝 `packages/react/src/types/components.ts` (+4 -0) </details> ### 📄 Description ## Summary - Add `<diff>` as a built-in React component by registering `DiffRenderable` in the component catalogue - Add React example demonstrating diff viewer with theme cycling, view modes (unified/split), and keybindings - Add diff-demo to core examples index --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-03-02 23:46:41 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/opentui#479
No description provided.