@focuson/form_components
Version:
Components that can be used by @focuson/forms
17 lines (16 loc) • 796 B
TypeScript
import { LensState } from "@focuson/state";
import { CommonStateProps, DropDownOnChangeProps } from "./common";
import { NameAnd } from "@focuson/utils";
import { FocusOnContext } from "@focuson/focuson";
import { HasButtons } from "./makeButtons";
export interface DropDownWithVaryingContentProps<S, C> extends CommonStateProps<S, string, C>, DropDownOnChangeProps<S, C>, HasButtons {
label: string;
parentState?: LensState<S, any, C>;
selector: LensState<S, string, C>;
enums: NameAnd<NameAnd<string>>;
pleaseSelect?: string;
size?: number;
required?: boolean;
readonly?: boolean;
}
export declare function LabelAndDropDownWithVaryingContent<S, C extends FocusOnContext<S>>(props: DropDownWithVaryingContentProps<S, C>): import("react/jsx-runtime").JSX.Element;