UNPKG

@dnb/eufemia

Version:

DNB Eufemia Design System UI Library

17 lines (16 loc) 671 B
import type { CSSProperties, ReactNode } from 'react'; import type { FieldProps } from '../../types'; export type FieldOptionProps = FieldProps<number | string> & { /** Title for the option. Overrides `children`. */ title?: ReactNode; /** Secondary text. */ text?: ReactNode; /** * What group index in the `groups` property ([Field.Selection](/uilib/extensions/forms/base-fields/Selection/)) this item belongs to. */ groupIndex?: number; /** Optional way to provide `title`. Will be ignored if `title` is used. */ children?: ReactNode; style?: CSSProperties; }; export default function Option(_props: FieldOptionProps): any;