@focuson/form_components
Version:
Components that can be used by @focuson/forms
21 lines (20 loc) • 952 B
TypeScript
import { MutableRefObject } from "react";
import { FocusOnContext } from "@focuson/focuson";
import { LensProps } from "@focuson/state";
import { NameAnd } from "@focuson/utils";
export type LayoutButtons = NameAnd<string[]>;
export interface LayoutProps<S, C> extends LensProps<S, any, C> {
details: string;
divRef?: MutableRefObject<HTMLDivElement>;
children: JSX.Element | JSX.Element[];
title?: string;
titleClassName?: string;
rightHandTitle?: string;
rightHandClassName?: string;
defaultProps?: string;
displayAsCards?: boolean;
scrollAfter?: string;
buttons?: LayoutButtons;
allButtons?: NameAnd<JSX.Element>;
}
export declare function Layout<S, C extends FocusOnContext<S>>({ state, details, children, title, titleClassName, rightHandTitle, rightHandClassName, defaultProps, displayAsCards, scrollAfter, divRef, buttons, allButtons }: LayoutProps<S, C>): import("react/jsx-runtime").JSX.Element;