Skip to main content

Module composer

Module composer 

Source
Expand description

输入栏:圆角外壳 + 输入框 + 陶土发送键。

Structs§

ComposerInputProps
Props for the ComposerInput component.
ComposerProps
Props for the Composer component.
ComposerSendProps
Props for the ComposerSend component.

Enums§

ComposerSize

Functions§

Composer
输入栏外壳:20px(Sm 为 14px)圆角、surface-3、发丝线 + composer 阴影, 聚焦时 Clay 双环。
ComposerInput
输入栏里的输入框:单行 input 或多行 textarea(field-sizing: content), 自带输入法守卫。
ComposerSend
陶土发送键。不给 onclick 时为 type=submit。
ime_composing 🔒
输入法组合中:composition 状态、isComposing、Process 键,或 keyCode 229 (Safari 确认候选的回车)。全仓输入法守卫只有这一种写法。