@cmk/fe_utils
Version:
frontend utility library
15 lines (13 loc) • 500 B
TypeScript
import { ReactNode } from 'react';
export type StringArrayFieldProps = {
value?: string[] | null;
label?: ReactNode;
name?: string;
required?: boolean;
error?: boolean;
onChangeArray: (newValue: string, name?: string) => void;
onRemoveItem: (name: string | undefined, arrayIndex: number) => void;
enableDeleteFirst?: boolean;
disabled?: boolean;
};
export declare const StringArrayField: (props: StringArrayFieldProps) => import("react/jsx-runtime").JSX.Element;