On this page Key rules Use when / Avoid Live preview Standard Classic AI Mode Do / Don't Accessibility Target Components
Carousel dots Dấu vị trí trang trí dưới carousel.
Copy page as Markdown Read Markdown ↗
Key rules
Chấm thể hiện vị trí do caller tính và không phải nút điều khiển.
Element chatty-carousel-dots ở mục Standard là chuẩn chatty-ui port theo; các mục theo surface mô tả component React đang chạy.
On this page Key rules Use when / Avoid Use instead Live preview Standard Element API Classic Import / element Anatomy Placement / order Props Sizes Tokens States Behaviour Copy Source AI Mode Import / element Anatomy Placement / order Props Sizes Tokens States Behaviour Copy Source Do / Don't Accessibility Target Use when / Avoid
Dùng để bổ sung tín hiệu vị trí cho carousel.
Use instead
Component
Use when
CarouselDots
Hiện vị trí carousel bằng dấu trang trí.
button
Dùng nút khi cần điều khiển cuộn carousel.
Live preview
Standard
Standard
Surface Classic AI Mode Light Dark Desktop Mobile
Element chatty-carousel-dots: 5, 3 và 8 chấm; token chuẩn.
Show code chatty-carousel-dots.element.js Wrap code lines Copy <chatty-carousel-dots style="width: 100%" count="5" active="0"></chatty-carousel-dots>
<chatty-carousel-dots style="width: 100%" count="3" active="1"></chatty-carousel-dots>
<chatty-carousel-dots style="width: 100%" count="8" active="7"></chatty-carousel-dots>
Prototype (cùng carousel-dots.styles.js và ) là chuẩn: chatty-ui port 1:1 các file này, và chatty-ui/custom-elements.json sinh từ chính prototype. Chấm chỉ trang trí và ẩn với công nghệ hỗ trợ; carousel tự nêu vị trí và giữ control. Chưa surface nào dùng element thật; các mục bên dưới mô tả React đang chạy.
Element
Element
Module
chatty-carousel-dots
@avada/chatty-ui/elements/carousel-dots.js
API
Classic
Standard
Surface Classic Light Dark Desktop Mobile
Element chatty-carousel-dots: 5, 3 và 8 chấm; token chuẩn.
Show code chatty-carousel-dots.element.js Wrap code lines Copy <chatty-carousel-dots style="width: 100%" count="5" active="0"></chatty-carousel-dots>
<chatty-carousel-dots style="width: 100%" count="3" active="1"></chatty-carousel-dots>
<chatty-carousel-dots style="width: 100%" count="8" active="7"></chatty-carousel-dots>
Current (React), being replaced
Surface Classic Light Dark Desktop Mobile
Dấu vị trí với dữ liệu cục bộ.
Show code carousel-dots.jsx Wrap code lines Copy import React from 'react';
import {CarouselDots} from '@scripttag/platform/components/CarouselDots/CarouselDots.jsx';
export function Catalogue() {
return <CarouselDots count={4} active={1} />;
}
Import / element
Component / element
Import / file
Scope root
CarouselDots
@scripttag/platform/components/CarouselDots/CarouselDots.jsx
.Avada-Faqs_Popup
Anatomy
Part
Element
1
Wrapper chứa một span cho mỗi mục.
Placement / order
Context
Order
Carousel
Dấu nằm sau track trong caller.
Props
Sizes
Tokens
Part
Token
Light
Dark
Ink
--carousel-dots-ink
Kế thừa khi thiếu token
Theo caller
States
State
Trigger
Visual change (values)
ARIA/attribute
Active
Index bằng active
Rộng 18px và dùng currentColor.
Wrapper aria-hidden
Reduced motion
prefers-reduced-motion reduce
Không transition.
Không đổi
Behaviour
Interaction
Result
Caller thay index
Đổi class của dấu active.
Copy
String
i18n key
Where
Not available
Not available
Không có copy.
Source
File
Evidence
API và markup
Style và motion
AI Mode
Standard
Surface AI Mode Light Dark Desktop Mobile
Element chatty-carousel-dots trên AI Mode.
Show code chatty-carousel-dots.element.js Wrap code lines Copy <chatty-carousel-dots style="width: 100%" count="5" active="0"></chatty-carousel-dots>
<chatty-carousel-dots style="width: 100%" count="3" active="1"></chatty-carousel-dots>
<chatty-carousel-dots style="width: 100%" count="8" active="7"></chatty-carousel-dots>
Current (React), being replaced
Surface AI Mode Light Dark Desktop Mobile
Dấu vị trí trong AI Mode.
Show code carousel-dots.jsx Wrap code lines Copy import React from 'react';
import {CarouselDots} from '@scripttag/platform/components/CarouselDots/CarouselDots.jsx';
export function Catalogue() {
return <CarouselDots count={4} active={1} />;
}
Import / element
Component / element
Import / file
Scope root
CarouselDots
@scripttag/platform/components/CarouselDots/CarouselDots.jsx
.chatty-ai-mode
Anatomy
Part
Element
1
Wrapper chứa một span cho mỗi mục.
Placement / order
Context
Order
Carousel
Dấu nằm sau track trong caller.
Props
Sizes
Tokens
Part
Token
Light
Dark
Ink
--carousel-dots-ink
Kế thừa khi thiếu token
Theo caller
States
State
Trigger
Visual change (values)
ARIA/attribute
Active
Index bằng active
Rộng 18px và dùng currentColor.
Wrapper aria-hidden
Reduced motion
prefers-reduced-motion reduce
Không transition.
Không đổi
Behaviour
Interaction
Result
Caller thay index
Đổi class của dấu active.
Copy
String
i18n key
Where
Not available
Not available
Không có copy.
Source
File
Evidence
API và markup
Style và motion
Do / Don't
Accessibility
Target
Target — read the case before building
Surface
Now
Target
Classic · AI Mode
Component React của kit chung
Not available — new build follows Target. Port chatty-carousel-dots từ mục Standard; carousel của khối sản phẩm ghép element này.
Chatty UI · Chrome dùng chatty-ui theo palette light/dark của guide; specimen giữ surface riêng. Surface dùng native select để bốn nhãn vẫn vừa ở 390px.