one
Version:
One is a React framework for web, iOS, and Android apps.
14 lines • 984 B
TypeScript
export type HapticImpact = 'light' | 'medium' | 'heavy' | 'soft' | 'rigid';
export type HapticNotification = 'success' | 'warning' | 'error';
export type AndroidHaptic = 'clock-tick' | 'confirm' | 'context-click' | 'drag-start' | 'gesture-end' | 'gesture-start' | 'keyboard-press' | 'keyboard-release' | 'keyboard-tap' | 'long-press' | 'no-haptics' | 'reject' | 'segment-frequent-tick' | 'segment-tick' | 'text-handle-move' | 'toggle-off' | 'toggle-on' | 'virtual-key' | 'virtual-key-release';
export interface Haptics {
/** picking among options, toggles, segments, mode switches */
selection(): void;
/** physical commits, drops, hard snaps, drag thresholds */
impact(style: HapticImpact): void;
/** completion and failure the user cares about */
notification(type: HapticNotification): void;
/** android HapticFeedbackConstants feedback; no-op on ios and web */
performAndroidHaptics(type: AndroidHaptic): void;
}
//# sourceMappingURL=types.d.ts.map