Skip to content

EditorIcon beta ​

TypeAlias of @v12-engine/editor

ts
export type EditorIcon = string | ((props: {
    size?: number;
    class?: string;
}) => JSX.Element);

An icon of the editor, as a game gives one of its own (EditorOptions.icons, editor.setIcon): a component that draws it at a size, in the colour of the words around it (Lucide's are that), the markup of an SVG (<svg …>), or the address of a picture