Integrated Blocks text support
Author: freb97Created Jul 7, 2025Updated Jul 7, 2025
Labelsquestion
Hello,
A while ago i created this little module: [Nuxt Strapi Blocks Renderer](https://github.com/freb97/nuxt-strapi-blocks-renderer)
I was wondering if it would be possible to contribute some of the functionality here, so that the other one could be archived. I was thinking about a composable maybe?
We already have `useStrapiMedia`, `useStrapiVersion`, etc. so what about something like `useStrapiBlocksText`:
```vue
{{ data.attributes.title }}
``` We could also extend the `useStrapi` composable: ```vue{{ data.attributes.title }}
``` Internally, we could provide a default implementation for each block, they already exist in the other module. The user should be able to override each block component by either: * using a predefined magic path -> e.g. `~/components/strapi/blocks/Paragraph.vue` * configuration -> e.g. `strapi: { blocks: { paths: { paragraph: '~/components/MyParagraph.vue' } } }` We should discuss what this could look like, i'm open to suggestions and of course i would like to offer implementing this feature once we scoped how / if you want it in this module.Source: nuxt-modules/strapi