Skip to content
View Markdown

Zoomable and Selectable ​

Content roles for a zoomable region or selectable text.

tsx
import { Selectable, Zoomable, Image } from '@satinhq/kit'

Example ​

Select the meeting point text. Try pinching the image on a device.

Allow text selection ​

Wrap readable text in Selectable. Text inputs own their editing behavior separately.

Own a zoom region ​

Zoomable owns pinch zoom for its children. maxScale bounds the scale, and onScaleChange reports it. Try touch gestures in the installed app.

API ​

Scroll horizontally to read every column.

PropTypeDescription
childrenReactNodeThe owned content.
maxScalenumberMaximum zoom scale.
onScaleChange(scale: number) => voidReceives scale changes.

Related: Quick start, List, Screen.

:::

Satin runs on the Lumen rendering engine and is open source under the MIT License.