Sanity Library Reference Docs
    Preparing search index...

    Interface ListItem

    Interface for List Item

    interface ListItem {
        child?: ListItemChild;
        displayOptions?: ListItemDisplayOptions;
        i18n?: I18nTextRecord<"title">;
        icon?: ReactNode | ComponentType<{}>;
        id: string;
        schemaType?: SchemaType;
        title?: string;
        type: string;
    }

    Hierarchy (View Summary)

    Index

    Properties

    List item child. See ListItemChild

    displayOptions?: ListItemDisplayOptions

    List item display options. See ListItemDisplayOptions

    i18n?: I18nTextRecord<"title">

    The i18n key and namespace used to populate the localized title. This is the recommend way to set the title if you are localizing your studio.

    icon?: ReactNode | ComponentType<{}>

    List item icon

    id: string

    List item id

    schemaType?: SchemaType

    List item schema type. See SchemaType

    title?: string

    List item title. Note that the i18n key and namespace will take precedence.

    type: string

    List item type