@empathyco/x-components
Version:
Empathy X Components
57 lines (50 loc) • 1.7 kB
Markdown
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [@empathyco/x-components](./x-components.md) > [MainScroll](./x-components.mainscroll.md)
## MainScroll variable
Extends the scroll making it able to sync the first visible element, and allowing the children position to be restored.
Each child element that wants to have this support must be wrapped in a [MainScrollItem](./x-components.mainscrollitem.md) component.
**Signature:**
```typescript
_default: import("vue").DefineComponent<{
useWindow: {
type: BooleanConstructor;
default: boolean;
};
restoreScrollTimeoutMs: {
type: NumberConstructor;
default: number;
};
threshold: {
type: NumberConstructor;
default: number;
};
margin: {
type: StringConstructor;
default: string;
};
}, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
[key: string]: any;
}> | "", unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
useWindow: {
type: BooleanConstructor;
default: boolean;
};
restoreScrollTimeoutMs: {
type: NumberConstructor;
default: number;
};
threshold: {
type: NumberConstructor;
default: number;
};
margin: {
type: StringConstructor;
default: string;
};
}>>, {
useWindow: boolean;
restoreScrollTimeoutMs: number;
threshold: number;
margin: string;
}, {}>
```