Documentation Index
Fetch the complete documentation index at: https://mintlify.com/BintzGavin/helios/llms.txt
Use this file to discover all available pages before exploring further.
PropType
Supported property types for schema validation.PropDefinition
Defines the schema for a single property.The expected type of the property
Whether the property is optional. Default:
falseDefault value if property is not provided
Minimum value for number types
Maximum value for number types
Minimum number of items for array and typed array types
Maximum number of items for array and typed array types
Minimum string length for string types
Maximum string length for string types
Allowed values for the property
Human-readable label for UI rendering
Description of the property
Step increment for number inputs
Format hint for specialized inputs
Regular expression pattern for string validation
Accepted file extensions for asset types
Group name for organizing properties in UI
Schema for array items (when type is ‘array’)
Nested schema for object properties (when type is ‘object’)
HeliosSchema
A schema is a record mapping property names to their definitions.validateSchema
Validates that a schema definition is well-formed.Schema to validate
Parent key for nested validation (used internally for error messages)
Example
Errors
ThrowsHeliosError with code INVALID_SCHEMA if:
- Pattern is defined on non-string types
- Pattern regex is invalid
- Accept is defined on incompatible types
- minItems/maxItems is negative or inconsistent
- minLength/maxLength is negative or inconsistent
- Default value doesn’t match the schema constraints
validateProps
Validates component props against a schema.Props object to validate
Schema to validate against. If not provided, props are returned unchanged.
Validated props object with defaults applied and extra props preserved
Example
Behavior
- Required props: Props without
optional: truemust be provided or have a default - Defaults: Applied when prop is undefined
- Extra props: Props not in schema are preserved in the output
- Nested validation: Objects and arrays are validated recursively
- Type coercion: No automatic coercion; types must match exactly
Errors
ThrowsHeliosError with code INVALID_INPUT_PROPS if:
- Required prop is missing and has no default
- Prop type doesn’t match schema
- Number is outside minimum/maximum range
- String length is outside minLength/maxLength range
- Array length is outside minItems/maxItems range
- String doesn’t match pattern
- Value is not in enum
- Color string is invalid
- File extension doesn’t match accept list