UNPKG

@dnb/eufemia

Version:

DNB Eufemia Design System UI Library

17 lines (16 loc) 766 B
import type { Path, ValueProps } from '../../types'; import type { ListFormatProps } from '../../../../components/list-format'; import type { MultiSelectionItem } from '../../Field/MultiSelection'; export type ValueMultiSelectionProps = ValueProps<Array<number | string>> & ListFormatProps & { /** * Data to resolve values to their display titles. Array of objects with `value` and `title` properties. */ data?: Array<MultiSelectionItem>; /** * The path to the context data (Form.Handler). * The context data object needs to have a `value` and a `title` property. */ dataPath?: Path; }; declare function MultiSelection(props: ValueMultiSelectionProps): import("react/jsx-runtime").JSX.Element; export default MultiSelection;