@leancodepl/kratos
Version:
Headless React components library for building Ory Kratos authentication flows
42 lines • 1.33 kB
TypeScript
import { UiText } from './UiText';
import { UiNode } from './UiNode';
/**
* Container represents a HTML Form. The container can work with both HTTP Form and JSON requests
* @export
* @interface UiContainer
*/
export interface UiContainer {
/**
* Action should be used as the form action URL `<form action="{{ .Action }}" method="post">`.
* @type {string}
* @memberof UiContainer
*/
action: string;
/**
*
* @type {Array<UiText>}
* @memberof UiContainer
*/
messages?: Array<UiText>;
/**
* Method is the form method (e.g. POST)
* @type {string}
* @memberof UiContainer
*/
method: string;
/**
*
* @type {Array<UiNode>}
* @memberof UiContainer
*/
nodes: Array<UiNode>;
}
/**
* Check if a given object implements the UiContainer interface.
*/
export declare function instanceOfUiContainer(value: object): value is UiContainer;
export declare function UiContainerFromJSON(json: any): UiContainer;
export declare function UiContainerFromJSONTyped(json: any, ignoreDiscriminator: boolean): UiContainer;
export declare function UiContainerToJSON(json: any): UiContainer;
export declare function UiContainerToJSONTyped(value?: UiContainer | null, ignoreDiscriminator?: boolean): any;
//# sourceMappingURL=UiContainer.d.ts.map