@dnb/eufemia
Version:
DNB Eufemia Design System UI Library
36 lines (35 loc) • 1.51 kB
TypeScript
import type { ReactNode } from 'react';
import type { FlexContainerAllProps as FlexContainerProps } from '../../../../components/flex/Container';
import type { ArrayItemAreaProps } from '../Array/ArrayItemArea';
export type IterateEditContainerProps = {
/**
* The title of the container.
*/
title?: ReactNode;
/**
* The title for a new item.
*/
titleWhenNew?: ReactNode;
/**
* If the container should be open or not. This is taken care of internally by default.
*/
open?: boolean;
/**
* An alternative toolbar to be shown in the container.
*/
toolbar?: ReactNode;
/**
* Use variants to render the toolbar differently. Currently there are the `minimumOneItem` and `custom` variants. See the info section for more info.
*/
toolbarVariant?: ArrayItemAreaProps['toolbarVariant'];
};
export type IterateEditContainerAllProps = IterateEditContainerProps & Omit<FlexContainerProps, 'onAnimationEnd'> & ArrayItemAreaProps;
declare function EditContainer(props: IterateEditContainerAllProps): import("react/jsx-runtime").JSX.Element;
declare namespace EditContainer {
var DoneButton: typeof import("./DoneButton").default;
var CancelButton: typeof import("./CancelButton").default;
}
export default EditContainer;
export declare function EditContainerWithoutToolbar(props: IterateEditContainerProps & Omit<FlexContainerProps, 'onAnimationEnd'> & {
toolbar?: ReactNode;
}): import("react/jsx-runtime").JSX.Element;