interface PrepopulationList {
    HeadingComponent?: FC<HeadingComponentProps>;
    items: {
        meta?: string;
        primary: SelectedItemProps;
    }[];
    title?: string;
    titleComponent?:
        | "h2"
        | "h3"
        | "h4"
        | "h1"
        | "h5"
        | "h6";
}

Properties

HeadingComponent?: FC<HeadingComponentProps>

Custom heading component to be used for the list.

items: {
    meta?: string;
    primary: SelectedItemProps;
}[]

Array of items to be prepopulated in the list.

Type declaration

  • Optionalmeta?: string

    Optional metadata for the item.

  • primary: SelectedItemProps

    Primary item details.

title?: string

Optional title for the list.

titleComponent?:
    | "h2"
    | "h3"
    | "h4"
    | "h1"
    | "h5"
    | "h6"

Semantic HTML heading tag to be used for the title.