Text Notes
Components for displaying and interacting with kind 1 text notes
Text Note
kind 1
Event Card
Loading event...
Usage
<EventCard event={event} />The EventCard component accepts an NDKEvent object and displays it with the author's profile information, content, and timestamp. It also supports interactions like replies, likes, zaps, and sharing.
Repost & Quote
Click the repost button to either repost directly or quote the post with your own comment
// Simple repost
const repostEvent = event.repost()
repostEvent.publish()
// Quote post
const quoteEvent = new NDKEvent(ndk)
quoteEvent.kind = NDKKind.Text
quoteEvent.content = `Your comment
nostr:${event.encode()}`
quoteEvent.publish()