Skip to content

Commit a1cd4b0

Browse files
committed
build(deps): require React 19
Narrow the react and react-dom peer range to ^19.0.0 and drop the React 18 claims from the README and the Panel docs. Many components take `ref` as a plain prop, which only reaches them on React 19, so React 18 consumers were never fully supported.
1 parent 9f97ae9 commit a1cd4b0

4 files changed

Lines changed: 7 additions & 8 deletions

File tree

‎README.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# @corbits/react-ui
22

3-
React components for agent products: conversations with reasoning, tool calls and approvals, run status, artifacts and charts, styled by one Tailwind v4 token theme. The UI package of Corbits: it renders data a host web app loads from Interchange, and works in any React 18 or 19 app without Interchange.
3+
React components for agent products: conversations with reasoning, tool calls and approvals, run status, artifacts and charts, styled by one Tailwind v4 token theme. The UI package of Corbits: it renders data a host web app loads from Interchange, and works in any React 19 app without Interchange.
44

55
## Why @corbits/react-ui?
66

@@ -15,7 +15,7 @@ React components for agent products: conversations with reasoning, tool calls an
1515
bun add @corbits/react-ui react react-dom lucide-react @radix-ui/react-slot
1616
```
1717

18-
Requires Node 24 or later. Tested on React 19; the peer range also accepts React 18.2+.
18+
Requires Node 24 or later and React 19.
1919

2020
Optional peers are needed only by the modules that import them. Those modules are not in the root entry, so import them by subpath:
2121

‎bun.lock‎

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎package.json‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,8 +124,8 @@
124124
"@radix-ui/react-slot": "^1.2.3",
125125
"@radix-ui/react-tooltip": "^1.2.8",
126126
"lucide-react": "^0.545.0 || ^1.0.0",
127-
"react": "^18.2.0 || ^19.0.0",
128-
"react-dom": "^18.2.0 || ^19.0.0",
127+
"react": "^19.0.0",
128+
"react-dom": "^19.0.0",
129129
"sonner": "^2.0.7"
130130
},
131131
"peerDependenciesMeta": {

‎src/ui/panel.tsx‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,7 @@ export type PanelProps = React.ComponentProps<"aside"> & {
8787
* itself goes back to what the overlay took it from.
8888
*
8989
* However it closes, focus that was inside the panel goes back to whatever
90-
* had it before the panel opened. `ref` reaches the `aside` on React 18 and
91-
* 19.
90+
* had it before the panel opened. `ref` reaches the `aside`.
9291
*/
9392
export const Panel = forwardRef<HTMLElement, PanelProps>(function Panel(
9493
{

0 commit comments

Comments
 (0)