The open alternative to Salesforce, designed for AI.
TypeScript crmcrm-systemcustomergood-first-issuegraphqlhacktoberfestjavascriptmarketingmonoreponestjsopen-sourcepostgresqlreactreactjssalestypescriptweb
Update doc for front components (#18196)
Baptiste Devessierf7ea1d95003e
diff --git a/packages/twenty-docs/developers/extend/capabilities/apps.mdx b/packages/twenty-docs/developers/extend/capabilities/apps.mdxindex fadba84e421..fdd75133e04 100644--- a/packages/twenty-docs/developers/extend/capabilities/apps.mdx+++ b/packages/twenty-docs/developers/extend/capabilities/apps.mdx@@ -696,7 +696,7 @@ Key points:Front components let you build custom React components that render within Twenty's UI. Use `defineFrontComponent()` to define components with built-in validation:```typescript-// src/my-widget.front-component.tsx+// src/front-components/my-widget.tsximport { defineFrontComponent } from 'twenty-sdk';const MyWidget = () => {@@ -718,14 +718,13 @@ export default defineFrontComponent({Key points:- Front components are React components that render in isolated contexts within Twenty.-- Use the `*.front-component.tsx` file suffix for automatic detection.- The `component` field references your React component.- Components are built and synced automatically during `yarn twenty app:dev`.You can create new front components in two ways:- **Scaffolded**: Run `yarn twenty entity:add` and choose the option to add a new front component.-- **Manual**: Create a new `*.front-component.tsx` file and use `defineFrontComponent()`.+- **Manual**: Create a new `.tsx` file and use `defineFrontComponent()`, following the same pattern.### Skills