UNPKG

@cs-open/react-fabric

Version:
12 lines 762 B
import type { Group as BaseGroup } from 'fabric'; import { Textbox as FabricTextbox } from 'fabric'; import { type ReactNode } from 'react'; import type { AllObjectEvents } from '../../types/object'; export type TextboxProps<T = unknown> = Partial<ConstructorParameters<typeof FabricTextbox>[1] & AllObjectEvents> & { group?: BaseGroup; text: string; children?: ReactNode; } & T; declare const _default: import("react").MemoExoticComponent<import("react").ForwardRefExoticComponent<Omit<TextboxProps<unknown>, "ref"> & import("react").RefAttributes<FabricTextbox<Partial<import("fabric").TextboxProps>, import("fabric").SerializedTextboxProps, import("fabric").ITextEvents> | undefined>>>; export default _default; //# sourceMappingURL=index.d.ts.map