@focuson/form_components
Version:
Components that can be used by @focuson/forms
17 lines (16 loc) • 734 B
TypeScript
import { LensState } from "@focuson/state";
import { CommonStateProps, DropDownOnChangeProps } from "./common";
import { FocusOnContext } from "@focuson/focuson";
import { HasButtons } from "./makeButtons";
export interface DropDownFromDataProps<S, T, C> extends CommonStateProps<S, string, C>, DropDownOnChangeProps<S, C>, HasButtons {
label: string;
parentState?: LensState<S, any, C>;
data: LensState<S, T[], C>;
dataId: keyof T;
dataField: keyof T;
pleaseSelect?: string;
size?: number;
required?: boolean;
readonly?: boolean;
}
export declare function LabelAndDropDownFromData<S, T, C extends FocusOnContext<S>>(props: DropDownFromDataProps<S, T, C>): import("react/jsx-runtime").JSX.Element;