View as Markdown

API reference: @salmonui/editors/image-editor

ImageEditorCustomIteminterface

import type { ImageEditorCustomItem } from '@salmonui/editors/image-editor';
interface ImageEditorCustomItem {
    readonly id: string;
    readonly label: string;
    readonly icon?: ReactNode;
    readonly disabled?: boolean | undefined;
    readonly onClick?: ((actions: ImageEditorActions) => void) | undefined;
}
ImageEditorCustomItem members (5)
NameSignatureDescription
idreadonly id: string;
labelreadonly label: string;

Accessible name and tooltip.

iconoptionalreadonly icon?: ReactNode;

Decorative icon; without one the label is shown.

disabledoptionalreadonly disabled?: boolean | undefined;
onClickoptionalreadonly onClick?: ((actions: ImageEditorActions) => void) | undefined;