react-spring-bottom-sheet-container-ref
Version:
✨ Accessible, 🪄 Delightful, and 🤯 Performant. Built on react-spring for the web, and react-use-gesture.
16 lines (15 loc) • 589 B
TypeScript
export declare function useSpring(): [import("react-spring").AnimatedValue<import("react-spring").ForwardedProps<{
y: unknown;
ready: unknown;
maxHeight: import("csstype").Property.MaxHeight<string | number>;
minSnap: unknown;
maxSnap: unknown;
}>>, import("react-spring").SetUpdateFn<{
y: unknown;
ready: unknown;
maxHeight: import("csstype").Property.MaxHeight<string | number>;
minSnap: unknown;
maxSnap: unknown;
}>];
export declare type Spring = ReturnType<typeof useSpring>[0];
export declare type SpringSet = ReturnType<typeof useSpring>[1];