Hiyve Components - v1.0.0
    Preparing search index...

    Interface AIPromptsSettingsProps

    interface AIPromptsSettingsProps {
        categories?: string[];
        labels?: Partial<AIPromptsSettingsLabels>;
        onCreate: (draft: AIPromptDraft) => Promise<AIPromptTemplate>;
        onDelete: (id: string) => Promise<void>;
        onUpdate: (
            id: string,
            patch: Partial<AIPromptDraft>,
        ) => Promise<AIPromptTemplate>;
        prompts: AIPromptTemplate[];
        renderRowExtras?: (template: AIPromptTemplate) => ReactNode;
        sx?: SxProps<Theme>;
    }
    Index

    Properties

    categories?: string[]

    Restrict the category dropdown in the create/edit form to this list. When omitted, the form shows a free-text category field.

    labels?: Partial<AIPromptsSettingsLabels>

    Override labels (i18n).

    onCreate: (draft: AIPromptDraft) => Promise<AIPromptTemplate>

    Create a new custom template. Resolves with the newly-created entry.

    onDelete: (id: string) => Promise<void>

    Delete a custom template.

    onUpdate: (
        id: string,
        patch: Partial<AIPromptDraft>,
    ) => Promise<AIPromptTemplate>

    Update a custom template.

    prompts: AIPromptTemplate[]

    All prompts the teacher can see — presets + their own customs.

    renderRowExtras?: (template: AIPromptTemplate) => ReactNode

    Optional renderer for a row's extra trailing content (e.g. a "Try" button).

    sx?: SxProps<Theme>

    MUI sx on the outer container.