UNPKG

@focuson/form_components

Version:

Components that can be used by @focuson/forms

11 lines (10 loc) 418 B
import { LensState } from "@focuson/state"; import { CustomButtonType } from "./common"; export interface SetStateButtonProps<S, T, C> extends CustomButtonType { id: string; label: string; state: LensState<S, T, C>; target: T; enabledBy?: string[][]; } export declare function SetStateButton<S, T, C>({ id, label, state, buttonType, target, enabledBy }: SetStateButtonProps<S, T, C>): JSX.Element;