@web-package/react-widgets
Version:
This is package that provides templates that can significantly reduce CSS development works in a react development environment.
15 lines (14 loc) • 539 B
TypeScript
import { ReactNode } from "react";
/** Signature for a factory function of a react-node about constraint. */
export type ConstraintsBuilder<T> = (value: T) => ReactNode;
export declare class Constraint<T = number> {
min: number;
max: number;
value: T;
constructor(min: number, max: number, value: T);
}
export declare function ConstraintBuilder<T>({ constraints, usememo, builder }: {
constraints: Constraint<T>[];
usememo?: boolean;
builder: ConstraintsBuilder<T>;
}): import("react/jsx-runtime").JSX.Element;