Carousel
Browse a short collection of related content one slide at a time.
1 of 3
Recommended API
| Property or element | Type | Example initial value | Description |
|---|---|---|---|
Slides | Content groups | First of three | Provide slide content and identify each position. |
data-direction | Integer | -1 or 1 | Choose the direction for the previous and next actions. |
States
| State | Trigger | Result |
|---|---|---|
changed | Activate Previous or Next. | The next slide is shown and its position is announced. |
CSS variables
| Variable | Type | Default | Description |
|---|---|---|---|
--q-text | color | #28302a | Main text and foreground color. |
--q-muted | color | #70776f | Color for secondary text. |
--q-font-size | length | 13px | Base size for the component text. |
--q-accent | color | #344e41 | Accent for active controls, indicators and focus. |
--q-border | color | #dce0d8 | Color for outlines and dividers. |
--q-radius | length | 10px | Base corner radius. |
--q-gap | length | calc(var(--q-space) * 2) | Space between items, based on the spacing unit. |
--q-panel-padding | length | calc(var(--q-space) * 5) | Inner padding for panels. |
--q-control-px | length | calc(var(--q-space) * 4) | Horizontal padding for controls. |
--q-control-py | length | calc(var(--q-space) * 2.5) | Vertical padding for controls. |
--q-space | length | 4px | Base unit for gaps and padding. |