mirror of
https://github.com/supabase/supabase.git
synced 2026-12-06 08:29:01 +00:00
* add realtime chat * yolo * clean up avatar references, leaving those out * allow to pass messages and receive message change state * add more names to reduce prob of same name popping up int he example * update registry, add nextjs docs * add more usage examples * Minor changes on the realtime chat component. * Regenerate the registry. * docs --------- Co-authored-by: Ivan Vasilov <vasilov.ivan@gmail.com>
28 lines
862 B
JSON
28 lines
862 B
JSON
{
|
|
"$schema": "https://ui.shadcn.com/schema/registry-item.json",
|
|
"name": "realtime-chat",
|
|
"type": "registry:component",
|
|
"title": "Realtime Chat",
|
|
"description": "Component which renders realtime chat messages from other users in a room.",
|
|
"registryDependencies": ["input", "button"],
|
|
"dependencies": ["lucide-react"],
|
|
"files": [
|
|
{
|
|
"path": "registry/default/blocks/realtime-chat/components/chat-message.tsx",
|
|
"type": "registry:component"
|
|
},
|
|
{
|
|
"path": "registry/default/blocks/realtime-chat/components/realtime-chat.tsx",
|
|
"type": "registry:component"
|
|
},
|
|
{
|
|
"path": "registry/default/blocks/realtime-chat/hooks/use-realtime-chat.tsx",
|
|
"type": "registry:hook"
|
|
},
|
|
{
|
|
"path": "registry/default/blocks/realtime-chat/hooks/use-chat-scroll.tsx",
|
|
"type": "registry:hook"
|
|
}
|
|
]
|
|
}
|