안녕하세요. localhost로 확인 중인데, toast component가 chrome 개발자 창의 element 요소에 아예 표기되지 않아 확인 요청 드립니다.
toast 사용한 코드 - 예제와 아예 똑같이 사용해서 테스트 진행했지만, 보이지 않음.
"use client";
import { Button, Toast } from "@toss-design-system/mobile";
import React from "react";
/** 버튼이 있는 토스트 (하단 전용) */
export default function ToastWithButton() {
const [open, setOpen] = React.useState(false);
return (
<div>
<Button onClick={() => setOpen(true)}>버튼 토스트 열기</Button>
<Toast
position="bottom"
open={open}
text="버튼이 포함된 토스트이에요"
button={
<Toast.Button onClick={() => alert("clicked")}>확인</Toast.Button>
}
duration={3000000000}
onClose={() => setOpen(false)}
/>
</div>
);
}
package.json
"dependencies": {
"@apps-in-toss/web-framework": "^1.0.0",
"@emotion/react": "^11.14.0",
"@granite-js/plugin-router": "0.1.21",
"@toss-design-system/colors": "^0.1.0",
"@toss-design-system/mobile": "2.1.0",
"@toss-design-system/mobile-ait": "2.1.0",
"next": "^15.5.2",
"react": "18.2.0",
"react-dom": "18.2.0"
},
감사합니다.