Sain (サイン)
A Compose Multiplatform library for capturing and exporting signatures as ImageBitmap with customizable options. Perfect for electronic signatures, legal documents, and more.
Supported platforms: Android · iOS · Desktop (JVM) · Web (JS) · Web (WasmJS)
Features
- Capture signatures as
ImageBitmapon all platforms - Customizable signature color, thickness, pad color, shape, and border
- Optional guideline with configurable style, padding, and dash pattern
- Hint text when the signature pad is empty
- State management with
rememberSignatureState()for persistence - Clear and complete actions via
SignatureAction
Installation
Add the Maven Central repository if it is not already there:
Multiplatform Projects
Add the dependency to your commonMain source set:
Android Projects
Add the dependency to your app's build.gradle.kts: