SheetMotion
What a Sheet moves as it is dragged and snaps, every frame on the UI thread (docs/motion.md#motion-sources).
Usage
Open and dismiss a sheet with a signal.
This type is used by Sheet
// Open and dismiss a sheet with a signal.
import { Sheet, Text, signal } from 'kuito';
const queueOpen = signal(false);
<Sheet
open={queueOpen.value}
snapPoints={['content', '90%']}
onClose={() => (queueOpen.value = false)}
padding={24}
>
<Text>Up next</Text>
</Sheet>;Type declaration
export interface SheetMotion {
/** Points the sheet stands over the screen's bottom. */
readonly height: Motion<number>;
/** Where that is between its lowest snap point (0) and its highest (1); below 0 dragged toward closing. */
readonly progress: Motion<number>;
}Members 2
Generated from the public TypeScript declarations: signatures, props and defaults come from the checked source, descriptions from its JSDoc. No defaults are invented.