Focus scroll
Scroll frame where the item nearest the centre is fully lit and slightly scaled while others dim and blur with distance, with ember centre ticks, click-to-centre and optional snap; reduced motion only dims.
Preview
Install
Pro source requires Pebble Pro. Try the full preview above.
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| children | ReactNode | — | The items, one child each (paragraphs, cards). |
| snap | boolean | false | Settle the nearest item on the centre line. |
| guide | boolean | true | Show the ember centre ticks. |
| blur / scale | number (px) / number | 2 / 1.04 | Blur at the edges and the focused item's scale. |
| initialIndex | number | — | Item centred on mount. |
| onFocusChange | (index: number) => void | — | Called when a different item becomes the nearest to the centre. |
| label | string | "Reading list" | Accessible name of the scroll region. |
Pro component
Try the full preview above. Editable source and build guides require Pebble Pro.
