UNPKG

@empathyco/x-components

Version:
40 lines (34 loc) 1.42 kB
<!-- Do not edit this file. It is automatically generated by API Documenter. --> [Home](./index.md) &gt; [@empathyco/x-components](./x-components.md) &gt; [ScrollToTop](./x-components.scrolltotop.md) ## ScrollToTop variable The `ScrollToTop` component is a button that the user can click to make a container scroll up to its initial position. **Signature:** ```typescript _default: import("vue").DefineComponent<{ animation: { type: (StringConstructor | ObjectConstructor | FunctionConstructor)[]; default: () => import("vue").DefineComponent<{}, {}, any>; }; thresholdPx: NumberConstructor; scrollId: { type: StringConstructor; default: string; }; }, { events: import("vue").ComputedRef<Partial<XEventsTypes>>; isVisible: import("vue").ComputedRef<boolean>; }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{ animation: { type: (StringConstructor | ObjectConstructor | FunctionConstructor)[]; default: () => import("vue").DefineComponent<{}, {}, any>; }; thresholdPx: NumberConstructor; scrollId: { type: StringConstructor; default: string; }; }>>, { animation: string | Function | Record<string, any>; scrollId: string; }, {}> ```