@synergy-design-system/components
Version:
This package provides the base of the Synergy Design System as native web components. It uses [lit](https://www.lit.dev) and parts of [shoelace](https://shoelace.style/). Synergy officially supports the latest two versions of all major browsers (as define
17 lines (16 loc) • 393 B
TypeScript
export type SynClampDetails = {
/**
* The "direction" the value was clamped to
*/
clampedTo: 'min' | 'max';
/**
* The last value the user has input before clamping.
*/
lastUserValue: number;
};
export type SynClampEvent = CustomEvent<SynClampDetails>;
declare global {
interface GlobalEventHandlersEventMap {
'syn-clamp': SynClampEvent;
}
}