@gitlab/ui
Version:
GitLab UI Components
29 lines (27 loc) • 656 B
JavaScript
import examples from './examples';
import * as description from './intersection_observer.md';
export default {
description,
examples,
propsInfo: {
options: {
additionalInfo: 'Extra options to pass directly to the intersection observer API.',
},
},
events: [
{
event: 'appear',
description: 'Emitted when the element appears on the page',
},
{
event: 'disappear',
description: 'Emitted when the element disappears from the page',
},
],
slots: [
{
slot: 'default',
description: "The element you wish to observe, or a fallback if the observer doesn't work.",
},
],
};