feat: Update plugin manager integration with lucide-react icons and improve RoomInput component logic
This commit is contained in:
@@ -149,6 +149,16 @@ interface MessageContext {
|
||||
|
||||
### 🎨 UI API
|
||||
|
||||
Plugins also receive `ctx.lucide` — the full [lucide-react](https://lucide.dev/) icon set for custom renderers and UI.
|
||||
|
||||
```javascript
|
||||
const { Link, Search, X } = ctx.lucide;
|
||||
|
||||
ctx.ui.registerRenderer('message', (msg, defaultRenderer) => {
|
||||
return ctx.React.createElement(Link, { size: 16 });
|
||||
});
|
||||
```
|
||||
|
||||
Register custom renderers:
|
||||
|
||||
```javascript
|
||||
|
||||
Reference in New Issue
Block a user