UNPKG

@compositive/components-controls

Version:

Compositive component library including form controls.

22 lines 953 B
import type { DesignSystemThemes, ThemedSxProp, UnknownTheme } from "@compositive/foundation"; import type { ReactElement, SyntheticEvent } from "react"; export declare namespace TextField { type Props<T extends UnknownTheme = DesignSystemThemes> = { onChange?: (e: SyntheticEvent) => void; onChangeText?: (newValue: string) => void; onFocus?: (e: SyntheticEvent) => void; onBlur?: (e: SyntheticEvent) => void; defaultValue?: string; /** Component value */ value?: string; sx?: ThemedSxProp<T>; }; type SurfaceProps = { focused: boolean; }; } export declare const TextField: <T extends UnknownTheme = UnknownTheme>({ onChange, onChangeText, value, onFocus, onBlur, defaultValue, sx, }: TextField.Props<T>) => ReactElement; export declare const $TextField: { readonly surface: readonly [symbol, "textField", "default"]; }; //# sourceMappingURL=TextField.d.ts.map