You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Puck editor allows us to override the individual fields using override -> fieldTypes. I have a small recommendation regarding this. Add custom props type to base field in the core/types.ts file like this.
This allows users to extend the existing fields for all sorts of requirements. For example, a user can extend the text field to support email or URL sub-types.
Puck editor allows us to override the individual fields using override -> fieldTypes. I have a small recommendation regarding this. Add custom props type to
base field
in thecore/types.ts
file like this.This allows users to extend the existing fields for all sorts of requirements. For example, a user can extend the text field to support email or URL sub-types.
and use it in the overrides to apply their own implementations.
Puck already passes the field props to the overrides but you need to typecast the modified fields.
The text was updated successfully, but these errors were encountered: