phx-react
Version:
PHX REACT
13 lines (12 loc) • 417 B
TypeScript
import * as React from 'react';
import { HTMLInputTypeAttribute } from 'react';
type Props = Readonly<{
'data-test-id'?: string;
label: string;
onChange(val: string): void;
placeholder?: string;
value: string;
type?: HTMLInputTypeAttribute;
}>;
export default function TextInput({ 'data-test-id': dataTestId, label, onChange, placeholder, type, value, }: Props): React.JSX.Element;
export {};