@mocanvas/mocanvas · interface

StyleValuesForUi

interface StyleValuesForUi<T extends string>

One choice in a picker: the value, and how to draw it.


Properties · 4

icon?: IconName
label: string
swatch?: string

A colour swatch, for the colour picker.

value: T

mocanvas is built by Symbio. Free for non-commercial, non-profit and development use; commercial use needs an agreement. Not affiliated with or endorsed by tldraw.