Skip to content
This is the alpha v4 version website. Looking for the v3 documentation?

colorProp

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

Param

Default color value

Param

Property options

Call Signature

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

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

Creates a color property schema with variable support.

Parameters

defaultValue

string

options

PropertyOptionsWithVariable

Returns

PropertySchema<string, "color", true>

Call Signature

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

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

Creates a color property schema without variable support.

Parameters

defaultValue

string

options?

PropertyOptionsNoVariable

Returns

PropertySchema<string, "color", false>