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

stringProp

Creates a string property schema.

defaultValue

Default string value

options

Property options

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

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

Creates a string property schema with variable support.

string

PropertyOptionsWithVariable

PropertySchema<string, "string", true>

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

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

Creates a string property schema without variable support.

string

PropertyOptionsNoVariable

PropertySchema<string, "string", false>