Component type represents a published UI component ready for execution in native apps.
Type Definition
Fields
| Field | Type | Description |
|---|---|---|
id | ID! | Unique identifier |
name | String! | Component name (used in code references) |
title | String! | Human-readable display title |
description | String! | Component description |
content | String! | TypeScript source code |
compiled | String! | JavaScript compiled code (ready for execution) |
schema | String! | JSON Schema defining component props |
createdAt | DateTime! | Creation timestamp |
updatedAt | DateTime! | Last update timestamp |
Field Details
name
The component name is used when referencing the component in code. It follows PascalCase naming convention.compiled
The compiled field contains JavaScript code that can be executed by the BindJS runtime. This is generated from the TypeScript source during the publish process.schema
The schema field contains a JSON Schema that defines the component’s props:Example Query
Related Types
- Package - Components are bundled into packages
- ComponentPreview - Preview versions of components
