BetaPublic beta — Read the release notes
Documentation

Chat Composer

Rich text input for composing chat messages with send action.

Package
@solidiom/chat-composer
Version
0.6.0
Status
experimental

Generated from the package's public source.

API

AttachButtoncomponent

                        AttachButton(props: ChatComposerAttachButtonProps): Element
                      

Props

class?
string
onClick?
() => void — Called when the attach action is triggered.
style?
string | CSSProperties

children: Element

View source

ChatComposerAttachButtonPropsinterface

Props

class?
string
onClick?
() => void — Called when the attach action is triggered.
style?
string | CSSProperties

children: Element

View source

ChatComposerInputPropsinterface

Props

class?
string
style?
string | CSSProperties

View source

ChatComposerRootPropsinterface

Props

class?
string
defaultValue?
string — Default uncontrolled value.
disabled?
boolean — Disable the composer.
maxLength?
number — Max character length.
onSubmit?
(message: string) => void — Callback when a message is submitted.
onValueChange?
(value: string) => void — Called when value changes.
placeholder?
string — Placeholder text for the input.
style?
string | CSSProperties
value?
Accessor<string> — Controlled value.

children: Element

View source

ChatComposerSendButtonPropsinterface

Props

class?
string
style?
string | CSSProperties

children: Element

View source

Inputcomponent

                        Input(props: ChatComposerInputProps): Element
                      

Props

class?
string
style?
string | CSSProperties

View source

Rootcomponent

                        Root(props: ChatComposerRootProps): Element
                      

Props

class?
string
defaultValue?
string — Default uncontrolled value.
disabled?
boolean — Disable the composer.
maxLength?
number — Max character length.
onSubmit?
(message: string) => void — Callback when a message is submitted.
onValueChange?
(value: string) => void — Called when value changes.
placeholder?
string — Placeholder text for the input.
style?
string | CSSProperties
value?
Accessor<string> — Controlled value.

children: Element

View source

SendButtoncomponent

                        SendButton(props: ChatComposerSendButtonProps): Element
                      

Props

class?
string
style?
string | CSSProperties

children: Element

View source