
Security News
PyPI Expands Trusted Publishing to GitLab Self-Managed as Adoption Passes 25 Percent
PyPI adds Trusted Publishing support for GitLab Self-Managed as adoption reaches 25% of uploads
@socotra/ec-react-components
Advanced tools
@socotra/ec-react-components is a powerful, schema-driven framework for building enterprise-grade insurance applications. This library provides a comprehensive suite of dynamic forms and UI components designed to accelerate development and handle the full spectrum of policy lifecycle operations with unparalleled flexibility.
At its core, this library is engineered to translate Socotra's flexible data model directly into a rich, interactive user interface. By leveraging your unique data model, we dynamically generate complex forms, eliminating the need to manually build and maintain forms for every product or data variation. This schema-driven approach ensures that as your insurance products evolve, your UI adapts automatically, dramatically reducing development overhead and increasing speed to market.
Our components are built with modern, robust technologies including React, TypeScript, Shadcn UI, and Tailwind CSS, ensuring a developer-friendly, performant, and highly customizable experience.
tag system allows for deep customization of field behavior directly from the data model—from conditional visibility to special UI controls like multi-select and currency inputs.npm i @socotra/ec-react-components
Dive into the detailed documentation for our core components to understand their purpose, props, and advanced capabilities.
| Component | Description |
|---|---|
| AccountForm | A dynamic form for creating and updating customer accounts based on configurable account types. |
| QuoteForm | The cornerstone of the quoting process. A comprehensive, multi-section form for creating and updating quotes with full support for constraint evaluation. |
| PolicyForm | A specialized, read-only view for displaying the complete data of an issued policy in a structured format. |
| ElementForm | A versatile and powerful form for rendering any sub-element of a policy or quote, such as a vehicle, driver, or location. |
| PaymentForm | A suite of components for handling all payment-related actions: creating new payments, applying existing credit, and reversing transactions. |
| DisbursementForm | A specialized form for processing disbursements from an account, with dynamic fields based on disbursement type. |
| DataPropertyForm | A dynamic form used for rendering and editing data properties using a provided data model and property schema. |
These forms are used for handling changes to policies post-issuance (endorsements, renewals, etc.).
| Component | Description |
|---|---|
| InitializedTransactionForm | Handles transactions in an initialized state (e.g., a new business quote), with full support for constraint evaluation to manage complex field dependencies before issuance. |
| DraftTransactionForm | A specialized form for midterm policy changes. It generates the necessary param and modify change instructions to accurately update a draft transaction. |
To unlock the full potential of this library, it's essential to understand the tag system. Our custom rendering guide provides a detailed walkthrough of how to control form behavior directly from your data model.
This guide covers:
hidden|..., rootHidden|..., hidden)multiselect, horizontal-layout)currency)readOnly)To style the components, follow the instructions in the theming guide.
This guide covers:
shadcn/uiThe documentation for this package is generated from a script that must be run after the package is built.
To contribute to the documentation, clone the repo and run the following command:
git clone https://github.com/socotra/ec-react.git
cd ec-react/packages/docs/src/components
Edit files under the components directory.
Run pnpm run sync to update the documentation in the README.md files of the other packages.
Follow instructions in the ec-react/packages/docs/README.md file to build the documentation and update the Socotra Documentation repo.
FAQs
Unknown package
We found that @socotra/ec-react-components demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 9 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
PyPI adds Trusted Publishing support for GitLab Self-Managed as adoption reaches 25% of uploads

Research
/Security News
A malicious Chrome extension posing as an Ethereum wallet steals seed phrases by encoding them into Sui transactions, enabling full wallet takeover.

Security News
Socket is heading to London! Stop by our booth or schedule a meeting to see what we've been working on.