useIndicator
The sliding indicator of a segmented control or tab list, as two AppBlob shapes. Items carry data-indicator="<key>"; the active one is measured against the container with a ResizeObserver, in physical px, so RTL needs nothing. The head moves first and the tail follows, so the pill stretches from the old item to the new one and settles. With quick set (hover), both move on a short tween; under reduced motion both jump. Keyboard and ARIA stay on your radios or tabs.
Install: pnpm add-composable useIndicator
Segmented control
API
container(Ref<HTMLElement | null>): The element the items and the canvas sit in.activeKey(Ref<string | number | null>): The data-indicator value of the active item.inset(number): Option: shrink the measured box on every side (a pill inside a padded track).quick(Ref<boolean>): Option: true while the move follows the pointer.canvas / shapes / box(ComputedRef / Ref): The AppBlob size, the head and tail shapes, and the active item box for HTML laid over it.measure(() => void): Measure again after items are added or their text changes.