Archived
Template
1
Fork 0
This repository has been archived on 2024-09-04. You can view files and clone it, but cannot push or open issues or pull requests.
Contour/public/@shoelace-style/shoelace/cdn/react/image-comparer/index.d.ts
2024-09-05 00:39:25 -04:00

31 lines
1.3 KiB
TypeScript
Executable file

import Component from '../../components/image-comparer/image-comparer.component.js';
import { type EventName } from '@lit/react';
import type { SlChangeEvent } from '../../events/events.js';
export type { SlChangeEvent } from '../../events/events.js';
/**
* @summary Compare visual differences between similar photos with a sliding panel.
* @documentation https://shoelace.style/components/image-comparer
* @status stable
* @since 2.0
*
* @dependency sl-icon
*
* @slot before - The before image, an `<img>` or `<svg>` element.
* @slot after - The after image, an `<img>` or `<svg>` element.
* @slot handle - The icon used inside the handle.
*
* @event sl-change - Emitted when the position changes.
*
* @csspart base - The component's base wrapper.
* @csspart before - The container that wraps the before image.
* @csspart after - The container that wraps the after image.
* @csspart divider - The divider that separates the images.
* @csspart handle - The handle that the user drags to expose the after image.
*
* @cssproperty --divider-width - The width of the dividing line.
* @cssproperty --handle-size - The size of the compare handle.
*/
declare const reactWrapper: import("@lit/react").ReactWebComponent<Component, {
onSlChange: EventName<SlChangeEvent>;
}>;
export default reactWrapper;