Prototype (cùng email-continue.styles.js) là chuẩn: chatty-ui port 1:1, và chatty-ui/custom-elements.json sinh từ chính prototype. Element kiểm định dạng email rồi phát chatty-submit; host gửi email và đặt loading, sent-to hoặc failed. Nhãn đi qua property .strings. Chưa surface nào dùng element thật; mục AI Mode bên dưới mô tả React đang chạy.
Element
Element
Module
chatty-email-continue
@avada/chatty-ui/elements/email-continue.js
API
Kind
Name
Type
Default
Description
attribute
email
string
''
Email đã có trên hội thoại; hiện dạng chữ thay cho ô nhập.
attribute
value
string
''
Giá trị điền sẵn của ô nhập.
attribute
loading
boolean
false
Đang gửi: nút hiện spinner, chặn gửi lặp.
attribute
failed
boolean
false
Hiện thông báo gửi lỗi (role alert).
attribute
sent-to
string
''
Email đã gửi tới; card đổi thành biên nhận.
event
chatty-submit
CustomEvent<{email: string}>
–
Gửi với email hợp lệ (nút Send hoặc Enter trong ô nhập).
slot
icon
–
–
Icon check của biên nhận.
part
base
–
–
Card, hoặc biên nhận sau khi gửi.
part
title
–
–
Tiêu đề card.
part
input
–
–
Ô nhập email.
part
error
–
–
Lỗi định dạng hoặc lỗi gửi.
css-property
--chatty-email-continue-radius
–
–
Bo góc card.
css-property
--chatty-email-continue-background
–
–
Nền card.
AI Mode
Standard
LightDarkDesktopMobile
Email đã có hiện dạng chữ, và ô nhập khi chưa có email.
Show codechatty-email-continue.element.jsWrap code linesCopy