Skip to content

Commit dbdbd7a

Browse files
committed
feat: Playground에 ChatInput 예시 추가
1 parent 914c1c0 commit dbdbd7a

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

src/pages/playground.tsx

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import { BannerCard } from '@shared/ui/BannerCard/BannerCard';
22
import { Button } from '@shared/ui/Button/Button';
33
import { Card } from '@shared/ui/Card/Card';
4+
import { ChatInput } from '@shared/ui/ChatInput';
45
import { Checkbox } from '@shared/ui/Checkbox/Checkbox';
56
import { Header } from '@shared/ui/Header/Header';
67
import { Modal } from '@shared/ui/Modal/Modal';
@@ -13,6 +14,7 @@ import { useState } from 'react';
1314
export default function Playground() {
1415
const [radioValue, setRadioValue] = useState('option1');
1516
const [isModalOpen, setIsModalOpen] = useState(false);
17+
const [chatMessage, setChatMessage] = useState('');
1618

1719
return (
1820
<div className="flex flex-col gap-6 p-8">
@@ -121,6 +123,16 @@ export default function Playground() {
121123
<h2 className="typo-body-1">SearchBar</h2>
122124
<SearchBar placeholder="어떤 제품을 찾으시나요?" onSearch={() => {}} />
123125
</section>
126+
{/* Chat Input */}
127+
<section className="flex flex-col gap-4">
128+
<h2 className="typo-body-1">ChatInput</h2>
129+
<ChatInput
130+
placeholder="무슨 견적을 원하시나요?"
131+
value={chatMessage}
132+
onChange={setChatMessage}
133+
onSend={() => {}}
134+
/>
135+
</section>
124136
{/* BannerCard */}
125137
<section className="flex flex-col gap-4">
126138
<h2 className="typo-body-1">Banner Card</h2>

0 commit comments

Comments
 (0)