Skip to content

src/dazzle_ui/specs/component.py

Generated: 2026-03-30T04:38:49.344875+00:00

Commit: 615f1354a103

Language: python

Scope: dazzle_ui

Purpose

Component specification types for UISpec.

Defines component structure and props schemas.

Key Exports

  • PropFieldSpec
  • PropsSchema
  • ComponentCategory
  • ComponentRole
  • ComponentSpec
  • get_field
  • validate_name
  • is_primitive
  • is_pattern
  • is_custom
  • is_presentational
  • is_container
  • get_action
  • get_state

Dependencies

Imports

  • __future__.annotations
  • typing.Any
  • pydantic.BaseModel
  • pydantic.ConfigDict
  • pydantic.Field
  • pydantic.field_validator
  • dazzle_ui.specs.actions.ActionSpec
  • dazzle_ui.specs.state.StateSpec
  • dazzle_ui.specs.view.ViewNode

Event Interactions

None detected.

Invariants and Assumptions

  • Validates: Component name

Tests

  • tests/unit/test_component_bridge.py
  • tests/unit/test_component_roles.py
  • tests/unit/test_component_rules.py
  • tests/unit/test_specs.py

Notes

This page was automatically generated by tools/gen_reference_docs.py.