TypingIndicator
入力中を示すインジケーターコンポーネント。
インポート
個別サブパス(バンドルサイズを抑えたい場合):
基本的な使い方
入力中
チャットUIでの使用例
Loading...
メッセージリスト内での使用
Loading...
アクセシビリティ
role="status" と aria-label(デフォルト '入力中')を持ち、スクリーンリーダー向けに sr-only テキストも出力します。label propで文言を上書きできます。
Props
| Prop | Type | Default | Description |
|---|---|---|---|
label | string | '入力中' | アクセシビリティ用のラベル(role="status"のaria-labelとsr-onlyテキストに使用) |
className | string | - | 追加のCSSクラス |
...props | HTMLMotionProps<"div"> | - | framer-motionのmotion.divに渡す追加props(onAnimationComplete等) |