@mitcsutt/kiln-forms
Version:
Kiln forms: typed React forms on TanStack Form, in component or JSON schema mode, rendered through kiln-ui
24 lines (23 loc) • 870 B
TypeScript
import type { ReactNode } from 'react';
export interface FormActionsProps {
/** Default `'end'`. */
align?: 'start' | 'end' | 'between';
/** Sticks to the bottom of the scroll container. */
sticky?: boolean;
/** Renders `<FormStatus />` at the start of the row (dirty / saving / saved). */
status?: boolean;
children: ReactNode;
}
/**
* The row of buttons at the end of a form, with the status line if you want it.
*
* @remarks
* `FormActions` is an {@link ActionBar | ActionBar} for forms. `status` adds a `FormStatus` at its
* start, and `sticky` keeps it in view while a long form scrolls.
*
* @example In a schema
* ```json
* { "layout": "actions", "align": "end", "children": [{ "content": "submit", "label": "Save line" }] }
* ```
*/
export declare function FormActions(props: FormActionsProps): import("react").JSX.Element;