UNPKG

@chamn/engine

Version:
12 lines (11 loc) 501 B
import { InputCommonRef } from '../type'; declare const FONT_CSS_KEY_LIST: readonly ["font-size", "color", "text-align", "font-weight"]; type FontKeyType = typeof FONT_CSS_KEY_LIST[number]; type Value = Record<FontKeyType, string>; export type FontInputProps = { initialValue?: Value; value?: Value; onChange?: (newVal: Value) => void; }; export declare const FontInput: import('react').ForwardRefExoticComponent<FontInputProps & import('react').RefAttributes<InputCommonRef>>; export {};