Built-in components
Built-in components
Basic components
Contentful offers built-in basic components, including Heading, Text, Rich Text, Image, Button, and Divider, which are enabled by default. If needed, you can disable these components using the defineComponents function when registering custom components.
Enable all basic components
All built-in basic components are enabled by default when you call the defineComponents function and do not provide the enabledBuiltInComponents option in the optional second parameter.
Enable specific basic components
To enable only specific built-in components, pass an array of their IDs to enabledBuiltInComponents.
In the example below, all built-in components except the Image component are enabled:
CONTENTFUL_COMPONENTS.image.id) is not included in the enabledBuiltInComponents array.Disable all basic components
To disable all built-in basic components, pass an object with enabledBuiltInComponents set to an empty array as the second parameter to defineComponents.