haptics.impact
A collision of a UI element of the given weight.
Usage
Add a light impact to an interaction.
// Add a light impact to an interaction.
import { haptics } from 'kuito';
await haptics.impact('medium');Signatures
(style: ImpactStyle): Promise<void>Parameters
| Name | Type | Required | Description |
|---|---|---|---|
style | ImpactStyle | Yes | — |
Returns
Promise<void>
Generated from the public TypeScript declarations: signatures, props and defaults come from the checked source, descriptions from its JSDoc. No defaults are invented.