nudge-components-library
Version:
A library of nudge UI components
19 lines • 740 B
TypeScript
import React from "react";
import { SliderProps } from "../anchoring/Slider";
import "../../styles/tokens.css";
import "../../styles/globals.css";
export type MoodDefinition = {
id: string;
icon: React.ReactNode;
label: string;
threshold?: number;
};
export type MoodSliderProps = SliderProps & {
moodDefinitions?: MoodDefinition[];
onMoodChange?: (moodId: string) => void;
tooltipMode?: "value" | "text" | "icon";
showIcon?: boolean;
};
export declare function MoodSlider({ moodDefinitions, onMoodChange, tooltipMode, showIcon, min, max, value, onChange, onCommit, ...restProps }: MoodSliderProps): import("react/jsx-runtime").JSX.Element;
export default MoodSlider;
//# sourceMappingURL=MoodSlider.d.ts.map