tw-table
Version:
table designed with tailwind and tanstack-table.
14 lines (13 loc) • 478 B
TypeScript
import React, { InputHTMLAttributes } from 'react';
interface Props extends Omit<InputHTMLAttributes<HTMLInputElement>, 'onChange'> {
id: string;
label: string;
options: {
value: string;
label: string;
}[];
placeholder?: string;
onChange: (selectedId: string, inputValue: string) => void;
}
export default function InputWithSelect({ id, label, options, placeholder, onChange, ...rest }: Props): React.JSX.Element;
export {};