Schema-driven approach to building UI components with integrated CRUD functionality
@repo/view
package provides a schema-driven approach to building UI components with integrated CRUD functionality, internationalization support, and error handling. It enables developers to define complex UI components using JSON schemas, with full type safety and validation.
zopio
monorepo and is available to all applications in the workspace.
renderView(schema, options)
: Renders a view based on the provided schemaViewErrorBoundary
: Error boundary component for catching and displaying view rendering errorsViewDesigner
: Component for visually designing view schemasViewDesignerForm
: Form component for editing view schemasuseViewTranslations(namespace)
: Hook for accessing translationsuseViewSchema(id)
: Hook for fetching a view schema by IDvalidateViewSchema(schema)
: Validates a view schemasafeValidateViewSchema(schema)
: Safely validates a view schema (doesn’t throw errors)initViewService(options)
: Initializes the view service with storage optionssaveView(id, schema)
: Saves a view schemagetView(id)
: Gets a view schema by IDlistViews()
: Lists all available view schemasdeleteView(id)
: Deletes a view schema