ChatTypingIndicator

Feedback & Status

점 3개로 답변 작성 중임을 알리는 인디케이터.

Usage

상대가 답변을 작성하는 동안 대기 상태를 보여줄 때 사용한다.

import

import

import { ChatTypingIndicator } from '@mildang/design-system/unofficial/Chat';

API Reference

ChatTypingIndicator Props

Prop

Type

Default

aria-label

string

답변을 작성하는 중

variant

"bubble" | "bare"

bubble

같은 패밀리

@mildang/design-system/unofficial/Chat 에서 같이 내보내는 컴포넌트다.

예제

말풍선

import { ChatTypingIndicator } from '@mildang/design-system/unofficial/Chat';
import type { ComponentProps } from 'react';
type Props = ComponentProps<typeof ChatTypingIndicator>;
const DEFAULT_ARGS: Props = { variant: 'bubble' };
export default function TypingIndicatorBubbleExample(props: Props) { return <ChatTypingIndicator {...DEFAULT_ARGS} {...props} />; }

점만 표시

import { ChatTypingIndicator } from '@mildang/design-system/unofficial/Chat';
import type { ComponentProps } from 'react';
type Props = ComponentProps<typeof ChatTypingIndicator>;
const DEFAULT_ARGS: Props = { variant: 'bare' };
export default function TypingIndicatorBareExample(props: Props) { return <ChatTypingIndicator {...DEFAULT_ARGS} {...props} />; }