@tolokoban/ui
Version:
React components with theme
20 lines • 759 B
TypeScript
import React from "react";
import { Children } from "../../types.js";
export interface ViewTouchableProps<T> {
className?: string;
children: Children;
/**
* HTML tooltip, used in the `title` attribute.
*/
style?: React.CSSProperties;
tooltip?: string;
/** Anything you want to be dispatched with the `onClick` event. */
tag?: T;
/**
* Event dispatched when a click is detected on the component.
* @param tag Any piece of data associated to this component.
*/
onClick?(tag: T | undefined): void;
}
export declare function ViewTouchable<T>({ className, children, tag, style, tooltip, onClick, }: ViewTouchableProps<T>): import("react/jsx-runtime").JSX.Element;
//# sourceMappingURL=Touchable.d.ts.map