Skip to main content

REFERENCE

SDK Demos

How to use @asgard-js/core and @asgard-js/react, with demos you can try on the page.

Channel Title

A title row can appear at the top of the thread, distinct from the bot-name header (the title prop). It's a good place to show what the current channel is about — a ticket number, a conversation topic, etc.

  1. PropTypeDescription
    channelTitlestring | nullSeed for the title (usually from channelMetadata()); updates live from the backend title.update event. null = unnamed
    renderTitle(props) => ReactNodeReplace the title row entirely. props is { title, renderDefault }; return null to hide
    untitledLabelstringFallback text when unnamed (null), default 新對話
    channelTitleHiddenbooleanHide the title row entirely
  2. Live Updates​

    The title is backed by a reactive store: it updates automatically when the backend emits asgard.channel.title.update, with no manual re-render. Headless consumers can subscribe with the useChannelTitle(channel) hook — see Headless.

  3. See Also​

Ready to get started?

Want to see how Asgard fits your team? Talk to us.

Contact us