Dots
Ripple UI comes with dots component allow to show a status of a process.
Default
Simple example of a dots.
HTML
JSX
<span class="dot flex"></span>
Colors
You can change the color of the dots.
HTML
JSX
<span class="dot flex"></span><span class="dot dot-primary flex"></span><span class="dot dot-secondary flex"></span><span class="dot dot-success flex"></span><span class="dot dot-warning flex"></span><span class="dot dot-error flex"></span>
With text
You can add text to the dots.
Cancelled Ready Cancelled Waiting Success WarningHTML
JSX
<span class="flex items-center gap-2"><span class="dot"></span><span>Cancelled</span></span><span class="flex items-center gap-2"><span class="dot dot-primary"></span><span>Ready</span></span><span class="flex items-center gap-2"><span class="dot dot-error"></span><span>Cancelled</span></span><span class="flex items-center gap-2"><span class="dot dot-secondary"></span><span>Waiting</span></span><span class="flex items-center gap-2"><span class="dot dot-success"></span><span>Success</span></span><span class="flex items-center gap-2"><span class="dot dot-warning"></span><span>Warning</span></span>
API
class | Description |
---|---|
dot | Default dot clase base |
dot-primary | Primary dot color |
dot-secondary | Secondary dot color |
dot-success | Success dot color |
dot-warning | Warning dot color |
dot-error | Error dot color |