@empathyco/x-components
Version:
Empathy X Components
40 lines (34 loc) • 1.42 kB
Markdown
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [@empathyco/x-components](./x-components.md) > [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;
}, {}>
```