SheetMotion
What a Sheet moves as it is dragged and snaps, every frame on the UI thread (docs/motion.md#motion-sources).
Verwendung
Open and dismiss a sheet with a signal.
Dieser Typ wird verwendet von 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>;Typdeklaration
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>;
}Mitglieder 2
Generiert aus den öffentlichen TypeScript-Deklarationen: Signaturen, Props und Standardwerte stammen aus der geprüften Quelle, Beschreibungen aus deren JSDoc. Kein Standardwert ist erfunden.