Skip to main content

@icon

The @icon decorator is used to mark the property that contains the icon for a Collection.Item.

Decorator type

Property ℹ️

Applies to

Decorator signature

@icon

Example

import { tripetto, definition, name, icon, Collection } from "@tripetto/builder";

class ExampleItem extends Collection.Item<Example> {
@icon
readonly icon = "data:image/svg+xml;base64,PHN2ZyAvPg==";

@definition
@name
name = "";
}