Appearance
LayoutSticky
Keeps an element at an edge while the page scrolls.
ts
import { LayoutSticky } from '@zairakai/vue-components/Layout'Usage
vue
<LayoutSticky />Props
| Name | Type | Default | Description |
|---|---|---|---|
id | string | ||
class | string | ||
offset | string | '0' | The distance to the edge, any CSS length. |
edge | string | 'top' | |
as | string | 'div' |
Slots
| Name | Description |
|---|---|
default |
See Theming for the class hooks and the data-* state of the components.