Typing Indicator
Core component
<loquix-typing-indicator> communicates that an assistant is producing or preparing a response.
Preview
Section titled “Preview”import '@loquix/core/define/define-typing-indicator';<loquix-typing-indicator variant="dots"></loquix-typing-indicator>
<loquix-typing-indicator variant="steps" message="Searching documents…"></loquix-typing-indicator>Properties
Section titled “Properties”| Property | Attribute | Type | Default | Description |
|---|---|---|---|---|
variant |
variant |
'dots' | 'text' | 'steps' |
'dots' |
Visual form of the status. |
message |
message |
string |
localized text | Optional message for text and steps. |
Choosing a variant
Section titled “Choosing a variant”| Variant | Use when |
|---|---|
dots |
The delay is brief and no explanation is necessary. |
text |
A simple human-readable status adds clarity. |
steps |
The assistant is performing a named stage of longer work. |
CSS parts
Section titled “CSS parts”| Part | Purpose |
|---|---|
container |
Outer status wrapper. |
dot |
Each animated dot in the dots variant. |
loquix-typing-indicator { --loquix-typing-dot-size: 5px; --loquix-typing-dot-color: #5b43e6;}
loquix-typing-indicator::part(container) { border-radius: 999px;}CSS custom properties
Section titled “CSS custom properties”| Variable | Purpose |
|---|---|
--loquix-typing-bg |
Indicator background. |
--loquix-typing-text-color |
Color for text and steps variants. |
--loquix-typing-dot-size |
Diameter of each dot. Defaults to 6px. |
--loquix-typing-dot-color |
Dot color. |