Skip to content
sigma.js sigma.js
v4.0.6 Docs Examples GitHub 12.2K

colorProp

Creates a color property schema. Colors are strings in CSS format (e.g., “#ff0000”, “rgba(255,0,0,1)”).

defaultValue

Default color value

options

Property options

colorProp(defaultValue, options): PropertySchema<string, "color", true>

Defined in: packages/sigma/src/primitives/schema.ts:152

Creates a color property schema with variable support.

string

PropertyOptionsWithVariable

PropertySchema<string, "color", true>

colorProp(defaultValue, options?): PropertySchema<string, "color", false>

Defined in: packages/sigma/src/primitives/schema.ts:161

Creates a color property schema without variable support.

string

PropertyOptionsNoVariable

PropertySchema<string, "color", false>