mica

Example

slide 1
slide 2
slide 3
slide 4
slide 5
slide 6

Basic usage

<m-reel gap="md" snap="mandatory" tabindex="0" role="region" aria-label="screenshots">…</m-reel>

API

Attributes

NameType/ValuesDefaultDescription
gapnone · 2xs · xs · sm · md · lg · xl · 2xlmdSets the space between items.
snapnone · mandatoryproximityControls horizontal scroll snapping.

Content/markup contract

NameType/ValuesDefaultDescription
Childrenreel itemsDirect children do not shrink and snap at their start edge.

Accessibility

A scrollable region must be keyboard-reachable — CSS cannot confer focusability, so the recipe carries it: tabindex="0" plus an accessible name (role="region" aria-label="…"). Without it, keyboard users cannot scroll the reel in some browsers.

← switcherframe →