Chat - 대화 헤더
Chat - 대화 헤더 (Conversation header)
테마가 적용된 헤더 컴포넌트를 사용해 활성 대화의 제목, 부제목, 참여자, 액션 버튼을 표시할 수 있어요.
본문
ChatConversationHeader는 구분선 스타일이 적용된 <header> 요소예요. 컨텍스트를 통해 활성 대화를 읽어서, 추가적인 연결 작업 없이도 모든 자식이 동일한 대화 상태에 접근할 수 있어요.
인터랙티브 플레이그라운드 (Interactive playground)
ChatConversationHeader의 제목, 부제목, 끝 쪽 액션을 구성해 보세요. 모든 헤더 하위 컴포넌트(ChatConversationHeaderInfo, ChatConversationTitle, ChatConversationSubtitle, ChatConversationHeaderActions)가 이 단일 데모에서 사용돼요.
import * as React from 'react';
import ArchiveIcon from '@mui/icons-material/Archive';
import MoreIcon from '@mui/icons-material/MoreVert';
import PinIcon from '@mui/icons-material/PushPin';
import SearchIcon from '@mui/icons-material/Search';
import Box from '@mui/material/Box';
import IconButton from '@mui/material/IconButton';
import Tooltip from '@mui/material/Tooltip';
import {
ChatConversation,
ChatConversationHeader,
ChatConversationHeaderActions,
ChatConversationHeaderInfo,
ChatConversationSubtitle,
ChatConversationTitle,
} from '@mui/x-chat';
import type { ChatConversation as ChatConversationType } from '@mui/x-chat/headless';
import { PlaygroundCard } from 'docs/src/modules/components/chat-playground/PlaygroundCard';
import { ScopedChat } from 'docs/src/modules/components/chat-playground/sharedProviders';
import {
DividerLabel,
NumberControl,
SwitchControl,
TextControl,
} from 'docs/src/modules/components/chat-playground/controls';
import {
useCustomizations,
type CustomizationDef,
} from 'docs/src/modules/components/chat-playground/useCustomizations';
import { users } from 'docs/src/modules/components/chat-playground/data';
const DEFAULTS = {
title: 'Styling questions',
subtitle: 'Theming MuiChatComposer',
showSubtitle: true,
actionCount: 2,
};
type ClassKey = 'header' | 'headerInfo' | 'title' | 'subtitle' | 'headerActions';
const CLASS_DEFS: ReadonlyArray<CustomizationDef<ClassKey>> = [
{
name: 'header',
selector: '.MuiChatConversation-header',
description: 'The header bar.',
},
{
name: 'headerInfo',
selector: '.MuiChatConversation-headerInfo',
description: 'The title + subtitle column.',
},
{
name: 'title',
selector: '.MuiChatConversation-title',
description: 'The title text.',
},
{
name: 'subtitle',
selector: '.MuiChatConversation-subtitle',
description: 'The subtitle text.',
},
{
name: 'headerActions',
selector: '.MuiChatConversation-headerActions',
description: 'The trailing actions row.',
},
];
export default function ChatConversationHeaderPlayground() {
const [title, setTitle] = React.useState(DEFAULTS.title);
const [subtitle, setSubtitle] = React.useState(DEFAULTS.subtitle);
const [showSubtitle, setShowSubtitle] = React.useState(DEFAULTS.showSubtitle);
const [actionCount, setActionCount] = React.useState(DEFAULTS.actionCount);
const classesCustomizations = useCustomizations<ClassKey>(CLASS_DEFS);
const handleReset = React.useCallback(() => {
setTitle(DEFAULTS.title);
setSubtitle(DEFAULTS.subtitle);
setShowSubtitle(DEFAULTS.showSubtitle);
setActionCount(DEFAULTS.actionCount);
}, []);
const conversation: ChatConversationType = React.useMemo(
() => ({
id: 'header-playground',
title,
subtitle: showSubtitle ? subtitle : undefined,
participants: [users.me, users.assistant],
}),
[title, subtitle, showSubtitle],
);
const wrapperSx = classesCustomizations.toClassesSx();
return (
<PlaygroundCard
title="ChatConversationHeader"
description="Top bar above the message list — title, subtitle, and action slot."
previewMinHeight={140}
onReset={handleReset}
classCustomizations={classesCustomizations.customizations}
onClassesReset={classesCustomizations.reset}
controls={
<React.Fragment>
<DividerLabel>fixture (conversation data)</DividerLabel>
<TextControl
label="conversation.title"
value={title}
onChange={setTitle}
helperText="Read by <ChatConversationTitle> from the active conversation."
/>
<TextControl
label="conversation.subtitle"
value={subtitle}
onChange={setSubtitle}
/>
<SwitchControl
label="render <ChatConversationSubtitle>"
checked={showSubtitle}
onChange={setShowSubtitle}
/>
<DividerLabel>composition</DividerLabel>
<NumberControl
label="header action count"
value={actionCount}
min={0}
max={4}
onChange={setActionCount}
helperText="Trailing icon button count."
/>
</React.Fragment>
}
preview={
<ScopedChat
conversations={[conversation]}
activeConversationId={conversation.id}
>
<ChatConversation>
<Box
sx={{
width: '100%',
overflow: 'hidden',
...wrapperSx,
}}
>
<ChatConversationHeader>
<ChatConversationHeaderInfo>
<ChatConversationTitle />
{showSubtitle ? <ChatConversationSubtitle /> : null}
</ChatConversationHeaderInfo>
{actionCount > 0 ? (
<ChatConversationHeaderActions>
{actionCount >= 1 ? (
<Tooltip title="Search">
<IconButton size="small" aria-label="Search">
<SearchIcon />
</IconButton>
</Tooltip>
) : null}
{actionCount >= 2 ? (
<Tooltip title="More">
<IconButton size="small" aria-label="More">
<MoreIcon />
</IconButton>
</Tooltip>
) : null}
{actionCount >= 3 ? (
<Tooltip title="Pin">
<IconButton size="small" aria-label="Pin">
<PinIcon />
</IconButton>
</Tooltip>
) : null}
{actionCount >= 4 ? (
<Tooltip title="Archive">
<IconButton size="small" aria-label="Archive">
<ArchiveIcon />
</IconButton>
</Tooltip>
) : null}
</ChatConversationHeaderActions>
) : null}
</ChatConversationHeader>
</Box>
</ChatConversation>
</ScopedChat>
}
/>
);
}
import {
ChatConversation,
ChatConversationHeader,
ChatConversationHeaderInfo,
ChatConversationTitle,
ChatConversationSubtitle,
ChatConversationHeaderActions,
} from '@mui/x-chat';
컴포넌트 구조 (Component anatomy)
ChatConversation <- thread shell, derives the active conversation
ChatConversationHeader <- header bar with divider styling
ChatConversationHeaderInfo <- stacks title over subtitle
ChatConversationTitle <- conversation name
ChatConversationSubtitle <- secondary line (participants, presence, etc.)
ChatConversationHeaderActions <- action area (archive, mute, context menu)
헤더는 스레드 창의 상단에 위치하며 활성 대화의 시각적 정체성을 제공해요.
제목과 부제목 설정 (Setting the title and subtitle)
ChatConversationTitle은 활성 대화의 title을 렌더링해요. ChatConversationSubtitle은 그 subtitle을 렌더링하며, 여기에는 참여자 이름, 온라인 상태 표시, 또는 어떤 설명 텍스트도 포함될 수 있어요.
ChatConversation 타입은 다음 필드를 제공해요:
interface ChatConversation {
id: string;
title?: string;
subtitle?: string;
avatarUrl?: string;
participants?: ChatUser[];
unreadCount?: number;
readState?: ConversationReadState;
lastMessageAt?: ChatDateTimeString;
metadata?: ChatConversationMetadata;
}
대화 상태가 흐르는 방식 (How conversation state flows)
ChatConversation은 React 컨텍스트를 통해 대화 상태를 제공해요. 각 헤더 하위 컴포넌트는 그 컨텍스트에서 상태를 읽어요 — props를 일일이 연결할 필요가 없어요.
대화 상태 필드 (Conversation state fields)
| Field | Type | Description |
|---|---|---|
conversationId |
string | undefined |
Currently selected conversation ID |
conversation |
ChatConversation | null |
Full active conversation object, when loaded |
hasConversation |
boolean |
Whether the thread currently has a selection |
hasConversation 플래그를 사용해 활성 대화가 없을 때 액션 버튼을 숨기거나 플레이스홀더를 표시할 수 있어요. ChatConversationHeader, ChatConversationTitle, ChatConversationSubtitle, ChatConversationHeaderActions 모두 이 동일한 대화 수준 상태를 받아요.
액션 영역 커스터마이즈 (Customizing the action area)
ChatConversationHeaderActions는 헤더 오른쪽에 액션 영역을 렌더링해요. 이를 대체해 보관(archive), 음소거(mute), 컨텍스트 메뉴 버튼을 추가할 수 있어요:
import IconButton from '@mui/material/IconButton';
import MoreVertIcon from '@mui/icons-material/MoreVert';
import ArchiveIcon from '@mui/icons-material/Archive';
const CustomActions = React.forwardRef(function CustomActions(
{ ownerState, ...props },
ref,
) {
if (!ownerState?.hasConversation) return null;
return (
<div ref={ref} {...props}>
<IconButton size="small" aria-label="Archive conversation">
<ArchiveIcon fontSize="small" />
</IconButton>
<IconButton size="small" aria-label="More options">
<MoreVertIcon fontSize="small" />
</IconButton>
</div>
);
});
import * as React from 'react';
import Box from '@mui/material/Box';
import FormControlLabel from '@mui/material/FormControlLabel';
import IconButton from '@mui/material/IconButton';
import Switch from '@mui/material/Switch';
import ArchiveIcon from '@mui/icons-material/Archive';
import MoreVertIcon from '@mui/icons-material/MoreVert';
import {
ChatConversation,
ChatConversationHeader,
ChatConversationHeaderActions,
ChatConversationHeaderInfo,
ChatConversationSubtitle,
ChatConversationTitle,
} from '@mui/x-chat';
import type {
ChatConversation as ChatConversationType,
ConversationHeaderActionsOwnerState,
} from '@mui/x-chat/headless';
import { ScopedChat } from 'docs/src/modules/components/chat-playground/sharedProviders';
const conversations: ChatConversationType[] = [
{ id: 'support', title: 'Support thread', subtitle: 'Replies in ~1h' },
];
const CustomActions = React.forwardRef(function CustomActions(
props: React.HTMLAttributes<HTMLDivElement> & {
ownerState?: ConversationHeaderActionsOwnerState;
},
ref: React.Ref<HTMLDivElement>,
) {
const { ownerState, ...other } = props;
if (!ownerState?.hasConversation) {
return null;
}
return (
<div ref={ref} {...other}>
<IconButton size="small" aria-label="Archive conversation">
<ArchiveIcon fontSize="small" />
</IconButton>
<IconButton size="small" aria-label="More options">
<MoreVertIcon fontSize="small" />
</IconButton>
</div>
);
});
export default function CustomHeaderActions() {
const [active, setActive] = React.useState(true);
// The sentinel id 'none' matches no seeded conversation, so `hasConversation`
// is false and the custom actions hide. Toggling to `undefined` would re-select
// the seed (see ScopedChat's initialActiveConversationId fallback).
const activeConversationId = active ? 'support' : 'none';
return (
<Box sx={{ width: '100%' }}>
<FormControlLabel
control={
<Switch
checked={active}
onChange={(event) => setActive(event.target.checked)}
/>
}
label="Active conversation"
sx={{ mb: 1 }}
/>
<ScopedChat
conversations={conversations}
activeConversationId={activeConversationId}
>
<ChatConversation>
<ChatConversationHeader>
<ChatConversationHeaderInfo>
<ChatConversationTitle />
<ChatConversationSubtitle />
</ChatConversationHeaderInfo>
<Box sx={{ flex: 1 }} />
<ChatConversationHeaderActions slots={{ actions: CustomActions }} />
</ChatConversationHeader>
</ChatConversation>
</ScopedChat>
</Box>
);
}
:::info
아이콘만 있는 IconButton은 반드시 aria-label을 가져야 해요 (위 레시피가 그렇게 하듯이). 그래야 스크린 리더가 각 액션을 알릴 수 있어요. 헤더 자체는 네이티브 <header> 요소예요. 전체 키보드 및 스크린 리더 모델은 Accessibility 페이지를 참고하세요.
:::
참여자 (Participants)
ChatConversation의 participants 배열은 displayName, avatarUrl, isOnline 필드를 가진 ChatUser 객체를 담아요. 이를 커스텀 부제목 슬롯에서 사용해 참여자 목록이나 온라인 상태를 표시할 수 있어요:
const ParticipantSubtitle = React.forwardRef(function ParticipantSubtitle(
{ ownerState, ...props },
ref,
) {
const participants = ownerState?.conversation?.participants ?? [];
const onlineCount = participants.filter((p) => p.isOnline).length;
return (
<span ref={ref} {...props}>
{participants.length} participants ({onlineCount} online)
</span>
);
});
subtitle 슬롯을 통해 연결해요:
<ChatConversationSubtitle slots={{ subtitle: ParticipantSubtitle }} />
슬롯과 클래스 (Slots and classes)
각 헤더 하위 컴포넌트는 요소를 재정의하기 위한 단일 슬롯 키, 스타일링용 CSS 클래스, 그리고 대응하는 ChatBox 슬롯 키를 노출해요:
| Component | Slot key | CSS class | ChatBox slot key |
|---|---|---|---|
ChatConversationHeader |
header |
.MuiChatConversation-header |
conversationHeader |
ChatConversationHeaderInfo |
headerInfo |
.MuiChatConversation-headerInfo |
conversationHeaderInfo |
ChatConversationTitle |
title |
.MuiChatConversation-title |
conversationTitle |
ChatConversationSubtitle |
subtitle |
.MuiChatConversation-subtitle |
conversationSubtitle |
ChatConversationHeaderActions |
actions |
.MuiChatConversation-headerActions |
conversationHeaderActions |
ChatConversationHeaderActions의 슬롯 키는 actions인데도 클래스는 headerActions예요.
전체 prop 참조는 생성된 API 페이지를 확인하세요: ChatConversationHeader API, ChatConversationHeaderInfo API, ChatConversationTitle API, ChatConversationSubtitle API, ChatConversationHeaderActions API.
헤더 슬롯 재정의 (Overriding a header slot)
가장 정밀한 커스터마이즈는 다른 모든 것을 유지하면서 한 슬롯의 요소 타입만 바꾸는 거예요:
import { ChatConversationHeader } from '@mui/x-chat';
import { styled } from '@mui/material/styles';
const GradientHeader = styled('header')(({ theme }) => ({
background: `linear-gradient(135deg, ${theme.palette.primary.dark}, ${theme.palette.primary.main})`,
color: theme.palette.primary.contrastText,
'& *': { color: 'inherit' },
}));
function CustomHeader(props) {
return <ChatConversationHeader {...props} slots={{ header: GradientHeader }} />;
}
CustomHeader를 ChatBox의 slots.conversationHeader prop으로 전달해요:
<ChatBox slots={{ conversationHeader: CustomHeader }} />
import * as React from 'react';
import Box from '@mui/material/Box';
import IconButton from '@mui/material/IconButton';
import MoreVertIcon from '@mui/icons-material/MoreVert';
import { styled } from '@mui/material/styles';
import {
ChatConversation,
ChatConversationHeader,
ChatConversationHeaderActions,
ChatConversationHeaderInfo,
ChatConversationSubtitle,
ChatConversationTitle,
} from '@mui/x-chat';
import type { ChatConversation as ChatConversationType } from '@mui/x-chat/headless';
import { ScopedChat } from 'docs/src/modules/components/chat-playground/sharedProviders';
const conversations: ChatConversationType[] = [
{ id: 'design', title: 'Design crit', subtitle: 'Weekly sync' },
];
const StyledGradientHeader = styled('header')(({ theme }) => ({
background: `linear-gradient(135deg, ${theme.palette.primary.dark}, ${theme.palette.primary.main})`,
color: theme.palette.primary.contrastText,
'& *': { color: 'inherit' },
}));
function CustomHeader(props: React.ComponentProps<typeof ChatConversationHeader>) {
return (
<ChatConversationHeader {...props} slots={{ header: StyledGradientHeader }} />
);
}
export default function GradientHeader() {
return (
<Box sx={{ width: '100%', overflow: 'hidden' }}>
<ScopedChat conversations={conversations} activeConversationId="design">
<ChatConversation>
<CustomHeader>
<ChatConversationHeaderInfo>
<ChatConversationTitle />
<ChatConversationSubtitle />
</ChatConversationHeaderInfo>
<Box sx={{ flex: 1 }} />
<ChatConversationHeaderActions>
<IconButton size="small" aria-label="More options">
<MoreVertIcon fontSize="small" />
</IconButton>
</ChatConversationHeaderActions>
</CustomHeader>
</ChatConversation>
</ScopedChat>
</Box>
);
}
대화 상태로 제목 커스터마이즈 (Customizing the title with conversation state)
슬롯 컴포넌트가 받는 ownerState prop은 전체 대화 컨텍스트를 담고 있어요. 이를 사용해 활성 대화에서 파생된 동적 콘텐츠를 렌더링할 수 있어요. ownerState는 Conversation state fields에 표시된 형태로 컴포넌트 자체가 주입해요. 이 컴포넌트에 직접 ownerState prop을 전달해도 효과가 없어요.
conversation.metadata는 기본적으로 비어 있어요 — ChatConversationMetadata를 앱의 필드로 확장하세요 (여기서는 예시용 memberCount). Type augmentation을 참고하세요.
import { ChatConversationTitle } from '@mui/x-chat';
const LiveTitle = React.forwardRef(function LiveTitle(
{ ownerState, children, ...props },
ref,
) {
const memberCount = ownerState?.conversation?.metadata?.memberCount;
return (
<div ref={ref} {...props}>
{ownerState?.conversation?.title ?? 'No conversation selected'}
{memberCount != null && (
<span style={{ fontWeight: 400, marginLeft: 8 }}>{memberCount} members</span>
)}
</div>
);
});
function CustomConversationTitle(props) {
return <ChatConversationTitle {...props} slots={{ title: LiveTitle }} />;
}
컴포넌트는 기본 콘텐츠(conversation.title)를 children으로 슬롯에 전달해요. 표시된 것처럼 렌더링하거나 대체할 수 있어요.
import * as React from 'react';
import Box from '@mui/material/Box';
import {
ChatConversation,
ChatConversationHeader,
ChatConversationHeaderInfo,
ChatConversationTitle,
} from '@mui/x-chat';
import type {
ChatConversation as ChatConversationType,
ConversationTitleOwnerState,
} from '@mui/x-chat/headless';
import { ScopedChat } from 'docs/src/modules/components/chat-playground/sharedProviders';
declare module '@mui/x-chat-headless/types' {
interface ChatConversationMetadata {
memberCount?: number;
}
}
const conversations: ChatConversationType[] = [
{
id: 'crit',
title: 'Design crit',
metadata: {
memberCount: 4,
},
},
];
const LiveTitleSlot = React.forwardRef(function LiveTitleSlot(
props: React.HTMLAttributes<HTMLDivElement> & {
ownerState?: ConversationTitleOwnerState;
},
ref: React.Ref<HTMLDivElement>,
) {
const { ownerState, children, ...other } = props;
const memberCount = ownerState?.conversation?.metadata?.memberCount;
return (
<div ref={ref} {...other}>
{ownerState?.conversation?.title ?? 'No conversation selected'}
{memberCount != null && (
<span style={{ fontWeight: 400, marginLeft: 8 }}>{memberCount} members</span>
)}
</div>
);
});
function CustomConversationTitle(
props: React.ComponentProps<typeof ChatConversationTitle>,
) {
return <ChatConversationTitle {...props} slots={{ title: LiveTitleSlot }} />;
}
export default function LiveTitle() {
return (
<Box sx={{ width: '100%', overflow: 'hidden' }}>
<ScopedChat conversations={conversations} activeConversationId="crit">
<ChatConversation>
<ChatConversationHeader>
<ChatConversationHeaderInfo>
<CustomConversationTitle />
</ChatConversationHeaderInfo>
</ChatConversationHeader>
</ChatConversation>
</ScopedChat>
</Box>
);
}
헤더를 처음부터 재구성 (Recomposing the header from scratch)
헤더 안에 추가 콘텐츠(예: 타이핑 표시기나 커스텀 구분선)를 넣어야 한다면, 개별 Material UI 컴포넌트로 헤더를 직접 조립할 수 있어요:
import {
ChatConversation,
ChatConversationHeader,
ChatConversationHeaderInfo,
ChatConversationTitle,
ChatConversationSubtitle,
ChatConversationHeaderActions,
} from '@mui/x-chat';
import Box from '@mui/material/Box';
function CustomThread() {
return (
<ChatConversation sx={{ height: '100%' }}>
<ChatConversationHeader>
<ChatConversationHeaderInfo>
<ChatConversationTitle />
<ChatConversationSubtitle />
</ChatConversationHeaderInfo>
<Box sx={{ flex: 1 }} />
<ChatConversationHeaderActions />
</ChatConversationHeader>
{/* rest of the thread */}
</ChatConversation>
);
}
추가 자료 (See also)
- Conversation list — 대화를 나열하는 사이드바
- Real-time sync — 헤더에 표시되는 대화 메타데이터의 실시간 갱신
- Layout — 메시지 목록과 컴포저를 포함한 전체 스레드 구조
ChatConversation API
데모 (Demos)
이 React 컴포넌트의 사용 예시와 자세한 내용은 컴포넌트 데모 페이지를 참고하세요:
임포트 (Import)
import { ChatConversation } from '@mui/x-chat/ChatConversation';
// or
import { ChatConversation } from '@mui/x-chat';
Note: The
refis forwarded to the root element.
Any other props supplied will be provided to the root element (native element).
CSS
규칙 이름 (Rule name)
| Global class | Rule name | Description |
|---|---|---|
| - | header | Styles applied to the conversation header element. |
| - | headerActions | Styles applied to the conversation header actions element. |
| - | headerInfo | Styles applied to the conversation header info element. |
| - | root | Styles applied to the conversation root element. |
| - | subtitle | Styles applied to the conversation subtitle element. |
| - | title | Styles applied to the conversation title element. |
소스 코드 (Source code)
이 페이지에서 원하는 정보를 찾지 못했다면, 컴포넌트 구현을 직접 살펴보면 더 자세한 내용을 확인할 수 있어요.
ChatConversationHeader API
데모 (Demos)
이 React 컴포넌트의 사용 예시와 자세한 내용은 컴포넌트 데모 페이지를 참고하세요:
임포트 (Import)
import { ChatConversationHeader } from '@mui/x-chat/ChatConversation';
// or
import { ChatConversationHeader } from '@mui/x-chat';
Note: The
refis forwarded to the root element.
CSS
규칙 이름 (Rule name)
| Global class | Rule name | Description |
|---|---|---|
| - | header | Styles applied to the conversation header element. |
| - | headerActions | Styles applied to the conversation header actions element. |
| - | headerInfo | Styles applied to the conversation header info element. |
| - | root | Styles applied to the conversation root element. |
| - | subtitle | Styles applied to the conversation subtitle element. |
| - | title | Styles applied to the conversation title element. |
소스 코드 (Source code)
이 페이지에서 원하는 정보를 찾지 못했다면, 컴포넌트 구현을 직접 살펴보면 더 자세한 내용을 확인할 수 있어요.
ChatConversationHeaderActions API
데모 (Demos)
이 React 컴포넌트의 사용 예시와 자세한 내용은 컴포넌트 데모 페이지를 참고하세요:
임포트 (Import)
import { ChatConversationHeaderActions } from '@mui/x-chat/ChatConversation';
// or
import { ChatConversationHeaderActions } from '@mui/x-chat';
Note: The
refis forwarded to the root element.
CSS
규칙 이름 (Rule name)
| Global class | Rule name | Description |
|---|---|---|
| - | header | Styles applied to the conversation header element. |
| - | headerActions | Styles applied to the conversation header actions element. |
| - | headerInfo | Styles applied to the conversation header info element. |
| - | root | Styles applied to the conversation root element. |
| - | subtitle | Styles applied to the conversation subtitle element. |
| - | title | Styles applied to the conversation title element. |
소스 코드 (Source code)
이 페이지에서 원하는 정보를 찾지 못했다면, 컴포넌트 구현을 직접 살펴보면 더 자세한 내용을 확인할 수 있어요.
ChatConversationHeaderInfo API
데모 (Demos)
이 React 컴포넌트의 사용 예시와 자세한 내용은 컴포넌트 데모 페이지를 참고하세요:
임포트 (Import)
import { ChatConversationHeaderInfo } from '@mui/x-chat/ChatConversation';
// or
import { ChatConversationHeaderInfo } from '@mui/x-chat';
Note: The
refis forwarded to the root element.
CSS
규칙 이름 (Rule name)
| Global class | Rule name | Description |
|---|---|---|
| - | header | Styles applied to the conversation header element. |
| - | headerActions | Styles applied to the conversation header actions element. |
| - | headerInfo | Styles applied to the conversation header info element. |
| - | root | Styles applied to the conversation root element. |
| - | subtitle | Styles applied to the conversation subtitle element. |
| - | title | Styles applied to the conversation title element. |
소스 코드 (Source code)
이 페이지에서 원하는 정보를 찾지 못했다면, 컴포넌트 구현을 직접 살펴보면 더 자세한 내용을 확인할 수 있어요.
ChatConversationSubtitle API
데모 (Demos)
이 React 컴포넌트의 사용 예시와 자세한 내용은 컴포넌트 데모 페이지를 참고하세요:
임포트 (Import)
import { ChatConversationSubtitle } from '@mui/x-chat/ChatConversation';
// or
import { ChatConversationSubtitle } from '@mui/x-chat';
Note: The
refis forwarded to the root element.
CSS
규칙 이름 (Rule name)
| Global class | Rule name | Description |
|---|---|---|
| - | header | Styles applied to the conversation header element. |
| - | headerActions | Styles applied to the conversation header actions element. |
| - | headerInfo | Styles applied to the conversation header info element. |
| - | root | Styles applied to the conversation root element. |
| - | subtitle | Styles applied to the conversation subtitle element. |
| - | title | Styles applied to the conversation title element. |
소스 코드 (Source code)
이 페이지에서 원하는 정보를 찾지 못했다면, 컴포넌트 구현을 직접 살펴보면 더 자세한 내용을 확인할 수 있어요.
ChatConversationTitle API
데모 (Demos)
이 React 컴포넌트의 사용 예시와 자세한 내용은 컴포넌트 데모 페이지를 참고하세요:
임포트 (Import)
import { ChatConversationTitle } from '@mui/x-chat/ChatConversation';
// or
import { ChatConversationTitle } from '@mui/x-chat';
Note: The
refis forwarded to the root element.
CSS
규칙 이름 (Rule name)
| Global class | Rule name | Description |
|---|---|---|
| - | header | Styles applied to the conversation header element. |
| - | headerActions | Styles applied to the conversation header actions element. |
| - | headerInfo | Styles applied to the conversation header info element. |
| - | root | Styles applied to the conversation root element. |
| - | subtitle | Styles applied to the conversation subtitle element. |
| - | title | Styles applied to the conversation title element. |
소스 코드 (Source code)
이 페이지에서 원하는 정보를 찾지 못했다면, 컴포넌트 구현을 직접 살펴보면 더 자세한 내용을 확인할 수 있어요.