Sanity Library Reference Docs
    Preparing search index...

    Interface ComponentView<TOptions>

    Interface for component views.

    interface ComponentView<TOptions = Record<string, any>> {
        component: UserViewComponent;
        icon?: ReactNode | ComponentType<{}>;
        id: string;
        options: TOptions;
        title: string;
    }

    Type Parameters

    • TOptions = Record<string, any>

    Hierarchy (View Summary)

    Index

    Properties

    Component view components. See UserViewComponent

    icon?: ReactNode | ComponentType<{}>

    View Icon

    id: string

    View id

    options: TOptions

    Component view options

    title: string

    View Title